This commit is contained in:
aozhiwei 2020-07-15 15:30:10 +08:00
parent 7a9c58ff93
commit bc74c6704f

View File

@ -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;