1
This commit is contained in:
parent
ad44ba7cea
commit
c68bac3a5e
@ -491,6 +491,10 @@ void AndroidNewAI::UpdateAttack()
|
|||||||
ChangeToStateNewAI(ASE_Thinking);
|
ChangeToStateNewAI(ASE_Thinking);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (node_.exec_frame_num > SERVER_FRAME_RATE * 8) {
|
||||||
|
ChangeToStateNewAI(ASE_Thinking);
|
||||||
|
return;
|
||||||
|
}
|
||||||
float distance = myself->GetPos().Distance(node_.target->GetPos());
|
float distance = myself->GetPos().Distance(node_.target->GetPos());
|
||||||
if (distance > GetAttackRange()) {
|
if (distance > GetAttackRange()) {
|
||||||
if (ai_meta->i->pursuit_radius() <= 0) {
|
if (ai_meta->i->pursuit_radius() <= 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user