mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 10:55:43 +00:00
fix(Core/Player): Arena AFK (#9733)
This commit is contained in:
committed by
GitHub
parent
dee19a030f
commit
f88203a73a
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user