From cdac8c10e22c694b588c5d5a4137d5df8e033eec Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 18 Apr 2024 11:53:45 +0800 Subject: [PATCH] 1 --- server/gameserver/commands.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/gameserver/commands.cc b/server/gameserver/commands.cc index 3287f552..43a99f36 100644 --- a/server/gameserver/commands.cc +++ b/server/gameserver/commands.cc @@ -110,6 +110,9 @@ void Player::_CMExecCommand(f8::MsgHdr* hdr, const cs::CMExecCommand& msg) } else if (cmd == "!chiji") { if (room->IsMobaModeRoom()) { Team* team = room->GetMobaTeamA(); + if (team == GetTeam()) { + team = room->GetMobaTeamB(); + } while (team->GetKillCount() <100) { team->IncKillCount(); }