diff --git a/server/gameserver/hero.ai.cc b/server/gameserver/hero.ai.cc index e1dd199..df7a1d5 100644 --- a/server/gameserver/hero.ai.cc +++ b/server/gameserver/hero.ai.cc @@ -65,11 +65,7 @@ void HeroAI::Update(int delta_time) float HeroAI::GetAttackRate() { - if (!ai_meta) { - return 1; - } else { - return ai_meta->i->attack_rate(); - } + return ai_meta->i->attack_rate(); } void HeroAI::UpdateAI()