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

(cherry picked from commit 82517ef46277170cc8db703d9e3a22078a4acb66)
This commit is contained in:
ariel-
2017-02-12 15:32:57 +01: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();
}