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

This commit is contained in:
ariel- authored and Aokromes committed 2016-08-16 12:26:54 +02:00
1 parent 30e0460306
commit b92ba1e11d
1 file changed
+1 -1
+1 -1
View File
@@ -1796,7 +1796,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();
}