Core/Battleground: Remove dead code in HandleBattleFieldPortOpcode related with leave arena queue

This commit is contained in:
luis
2026-09-22 20:20:27 -03:00
parent 5aa2a95eb6
commit 246e9dccac
@@ -421,23 +421,6 @@ void WorldSession::HandleBattleFieldPortOpcode(WorldPackets::Battleground::Battl
}
else // leave queue
{
// Under a group proposal a decline is not just this player leaving: the whole proposal collapses, the
// others get SMSG_BATTLEFIELD_STATUS_GROUP_PROPOSAL_FAILED and those who had already accepted are put
// back in the queue at the position they held. This player's own removal is the code below.
bgQueue.ProposalDecline(_player->GetGUID());
// if player leaves rated arena match before match start, it is counted as he played but he lost
if (bgQueue.GetQueueId().Rated && ginfo.IsInvitedToBGInstanceGUID)
{
ArenaTeam* at = sArenaTeamMgr->GetArenaTeamById(ginfo.Team);
if (at)
{
TC_LOG_DEBUG("bg.battleground", "UPDATING memberLost's personal arena rating for {} by opponents rating: {}, because he has left queue!", _player->GetGUID().ToString(), ginfo.OpponentsTeamRating);
at->MemberLost(_player, ginfo.OpponentsMatchmakerRating);
at->SaveToDB();
}
}
WorldPackets::Battleground::BattlefieldStatusNone battlefieldStatus;
battlefieldStatus.Ticket = battlefieldPort.Ticket;
SendPacket(battlefieldStatus.Write());