mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-19 22:49:39 -04:00
Core/Player: Do not kick AFK player from BG if it's a GM
(cherry picked from commit 82517ef462)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user