diff --git a/server/gameserver/commands.cc b/server/gameserver/commands.cc index 4c28f4c9..b833a0f6 100644 --- a/server/gameserver/commands.cc +++ b/server/gameserver/commands.cc @@ -87,16 +87,22 @@ void Player::_CMExecCommand(f8::MsgHdr* hdr, const cs::CMExecCommand& msg) room->stop_world = false; } else if (cmd == "chiji") { #if MYDEBUG - room->debug_params[119] = 1; - room->xtimer.SetTimeoutEx - (1, - [this] (int event, const a8::Args* args) - { - if (a8::TIMER_EXEC_EVENT == event) { - room->GetIncubator()->ShowHand(); - } - }, - &xtimer_attacher); + if (room->IsMobaModeRoom()) { + while (!room->GetVictoryTeam()) { + GetTeam()->IncKillCount(); + } + } else { + room->debug_params[119] = 1; + room->xtimer.SetTimeoutEx + (1, + [this] (int event, const a8::Args* args) + { + if (a8::TIMER_EXEC_EVENT == event) { + room->GetIncubator()->ShowHand(); + } + }, + &xtimer_attacher); + } #endif } else if (cmd == "disable_gas_damage") { #if MYDEBUG