1
This commit is contained in:
parent
c7b3b81ea5
commit
5a6093c4ce
@ -240,6 +240,17 @@ void AndroidAI::DoAttackOldAI()
|
|||||||
void AndroidAI::UpdateNewAI()
|
void AndroidAI::UpdateNewAI()
|
||||||
{
|
{
|
||||||
Human* hum = (Human*)owner;
|
Human* hum = (Human*)owner;
|
||||||
|
#ifdef DEBUG
|
||||||
|
{
|
||||||
|
if (!owner->IsDead(owner->room) &&
|
||||||
|
App::Instance()->debug_params.find(119) != App::Instance()->debug_params.end()) {
|
||||||
|
hum->BeKill(VP_Gas,
|
||||||
|
TEXT("battle_server_killer_gas", "毒圈"),
|
||||||
|
VW_Gas);
|
||||||
|
a8::UnSetBitFlag(hum->status, CS_Disable);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
if (a8::HasBitFlag(hum->status, CS_Disable)) {
|
if (a8::HasBitFlag(hum->status, CS_Disable)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -36,11 +36,6 @@ Human* Team::GetOneAliveMember(Human* exclude_hum)
|
|||||||
|
|
||||||
bool Team::HasAliveMember()
|
bool Team::HasAliveMember()
|
||||||
{
|
{
|
||||||
#if DEBUG
|
|
||||||
if (App::Instance()->debug_params.find(199) != App::Instance()->debug_params.end()) {
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
for (Human* member : members_) {
|
for (Human* member : members_) {
|
||||||
if (!member->real_dead) {
|
if (!member->real_dead) {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user