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