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);
|
ToggleFlag(PLAYER_FLAGS, PLAYER_FLAGS_AFK);
|
||||||
|
|
||||||
// afk player not allowed in battleground
|
// afk player not allowed in battleground
|
||||||
if (isAFK() && InBattleground() && !InArena())
|
if (!IsGameMaster() && isAFK() && InBattleground())
|
||||||
LeaveBattleground();
|
LeaveBattleground();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user