1
This commit is contained in:
parent
03cb53c6b0
commit
6de0120c35
@ -9,6 +9,7 @@
|
||||
#include "player.h"
|
||||
#include "roomobstacle.h"
|
||||
#include "car.h"
|
||||
#include "app.h"
|
||||
|
||||
HeroAI::HeroAI()
|
||||
{
|
||||
@ -161,6 +162,12 @@ void HeroAI::UpdateAttack()
|
||||
if (myself->HasBuffEffect(kBET_Vertigo)) {
|
||||
return;
|
||||
}
|
||||
#ifdef DEBUG
|
||||
if (App::Instance()->HasFlag(20)) {
|
||||
ChangeToStateAI(HSE_Thinking);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
float distance = myself->GetPos().Distance(node_->target.Get()->GetPos());
|
||||
if (distance > GetAttackRange()) {
|
||||
if (ai_meta->i->pursuit_radius() <= 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user