From 23e3909221040f1ea9f4850f6c0473ccdb6564c1 Mon Sep 17 00:00:00 2001 From: azazel Date: Wed, 15 Dec 2010 14:25:10 +0600 Subject: [PATCH] Core/Arena: avoid arena match loss when leaving queue before actual invitation to match (by VladimirMangos) --HG-- branch : trunk --- .../game/Server/Protocol/Handlers/BattleGroundHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/game/Server/Protocol/Handlers/BattleGroundHandler.cpp b/src/server/game/Server/Protocol/Handlers/BattleGroundHandler.cpp index bf64f48c8b..3d9face508 100755 --- a/src/server/game/Server/Protocol/Handlers/BattleGroundHandler.cpp +++ b/src/server/game/Server/Protocol/Handlers/BattleGroundHandler.cpp @@ -474,7 +474,7 @@ void WorldSession::HandleBattleFieldPortOpcode(WorldPacket &recv_data) break; case 0: // leave queue // if player leaves rated arena match before match start, it is counted as he played but he lost - if (ginfo.IsRated) + if (ginfo.IsRated && ginfo.IsInvitedToBGInstanceGUID) { ArenaTeam * at = sObjectMgr.GetArenaTeamById(ginfo.Team); if (at)