fix(Core/Player): Arena AFK (#9733)

This commit is contained in:
IntelligentQuantum
2021-12-28 14:07:47 +03:30
committed by GitHub
parent dee19a030f
commit f88203a73a

View File

@@ -1251,7 +1251,7 @@ void Player::ToggleAFK()
ToggleFlag(PLAYER_FLAGS, PLAYER_FLAGS_AFK);
// afk player not allowed in battleground
if (isAFK() && InBattleground() && !InArena())
if (!IsGameMaster() && isAFK() && InBattleground())
LeaveBattleground();
}