mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[9983] Leave at AFK applied only to battlegrounds (not arena)
Signed-off-by: VladimirMangos <vladimir@getmangos.com> Also restore build...
This commit is contained in:
parent
d0398b94f6
commit
6ce82e4914
3 changed files with 3 additions and 5 deletions
|
|
@ -1586,7 +1586,7 @@ bool Player::ToggleAFK()
|
|||
bool state = HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_AFK);
|
||||
|
||||
// afk player not allowed in battleground
|
||||
if(state && InBattleGround())
|
||||
if (state && InBattleGround() && !InArena())
|
||||
LeaveBattleground();
|
||||
|
||||
return state;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue