From d7064a0c9e1d5bfa3baf37fd7bdaca35a79d0309 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 23 Jul 2021 05:35:48 +0000 Subject: [PATCH] 1 --- server/gameserver/hero.ai.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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()