diff --git a/server/gameserver/team.cc b/server/gameserver/team.cc index 89f9d38b..134f6c17 100644 --- a/server/gameserver/team.cc +++ b/server/gameserver/team.cc @@ -525,10 +525,12 @@ int Team::GetKillCount() void Team::IncKillCount() { - if (room->IsMobaModeRoom() && kill_count_ >= mt::Param::s().moba_kill_times) { + if (room->IsMobaModeRoom()) { if (room->GetVictoryTeam()) { return; } + } + if (room->IsMobaModeRoom() && kill_count_ + 1 >= mt::Param::s().moba_kill_times) { room->SetVictoryTeam(this); room->xtimer.SetTimeoutWpEx (NEXT_FRAME_TIMER,