This commit is contained in:
aozhiwei 2021-09-30 02:52:54 +00:00
parent c7b3b81ea5
commit 5a6093c4ce
2 changed files with 11 additions and 5 deletions

View File

@ -240,6 +240,17 @@ void AndroidAI::DoAttackOldAI()
void AndroidAI::UpdateNewAI()
{
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)) {
return;
}

View File

@ -36,11 +36,6 @@ Human* Team::GetOneAliveMember(Human* exclude_hum)
bool Team::HasAliveMember()
{
#if DEBUG
if (App::Instance()->debug_params.find(199) != App::Instance()->debug_params.end()) {
return 1;
}
#endif
for (Human* member : members_) {
if (!member->real_dead) {
return true;