From bc74c6704f1f06ddbae539667ba951b59e662eb2 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 15 Jul 2020 15:30:10 +0800 Subject: [PATCH] 1 --- server/gameserver/android_new.ai.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/gameserver/android_new.ai.cc b/server/gameserver/android_new.ai.cc index abaa8e2..8fefbed 100644 --- a/server/gameserver/android_new.ai.cc +++ b/server/gameserver/android_new.ai.cc @@ -506,13 +506,19 @@ void AndroidNewAI::UpdateAttack() case kShotClick: { if (ai_meta->i->attack_interval() > 0) { + #if 0 if (myself->room->GetFrameNo() - node_.start_shot_frameno > ai_meta->i->attack_interval() / 100) { //本轮射击结束 node_.shot_times = 0; } + #endif if (node_.shot_times < ai_meta->i->attack_times()) { DoShotNewAI(); + } else { + ChangeToStateNewAI(ASE_Idle); + node_.next_total_shot_times = node_.total_shot_times; + node_.param1 = ai_meta->i->attack_interval() / 1000 * SERVER_FRAME_RATE; } } else { myself->shot_hold = true;