Core/Player: Do not kick AFK player from BG if it's a GM

(cherry picked from commit 82517ef462)
This commit is contained in:
ariel-
2016-08-16 00:41:34 -03:00
committed by joschiwald
parent a4baffbf6f
commit 07e8fe115f
+1 -1
View File
@@ -1420,7 +1420,7 @@ void Player::ToggleAFK()
ToggleFlag(PLAYER_FLAGS, PLAYER_FLAGS_AFK);
// afk player not allowed in battleground
if (isAFK() && InBattleground() && !InArena())
if (!IsGameMaster() && isAFK() && InBattleground() && !InArena())
LeaveBattleground();
}