1
This commit is contained in:
parent
aff5f45a95
commit
8c98601a31
@ -494,11 +494,6 @@ void AndroidNewAI::UpdateThinking()
|
||||
}
|
||||
} else {
|
||||
Creature* target = GetTarget();
|
||||
#ifdef DEBUG
|
||||
if (App::Instance()->HasFlag(20)) {
|
||||
target = nullptr;
|
||||
}
|
||||
#endif
|
||||
if (target) {
|
||||
node_.target.Attach(target);
|
||||
ChangeToStateNewAI(ASE_Attack);
|
||||
@ -528,6 +523,12 @@ void AndroidNewAI::UpdateAttack()
|
||||
ChangeToStateNewAI(ASE_Thinking);
|
||||
return;
|
||||
}
|
||||
#ifdef DEBUG
|
||||
if (App::Instance()->HasFlag(20)) {
|
||||
ChangeToStateNewAI(ASE_Thinking);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
float distance = myself->GetPos().Distance(node_.target.Get()->GetPos());
|
||||
if (distance > GetAttackRange()) {
|
||||
if (ai_meta->i->pursuit_radius() <= 0) {
|
||||
|
@ -1115,7 +1115,7 @@ void Player::_CMExecCommand(f8::MsgHdr& hdr, const cs::CMExecCommand& msg)
|
||||
if (cmds.empty()) {
|
||||
App::Instance()->UnSetFlag(20);
|
||||
} else {
|
||||
if (cmds[0] == "peace") {
|
||||
if (cmds[1] == "peace") {
|
||||
App::Instance()->SetFlag(20);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user