Core/Player: Fix issue with players being kicked when going AFK in arenas
This commit is contained in:
@@ -2002,7 +2002,7 @@ bool Player::ToggleAFK()
|
|||||||
bool state = HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_AFK);
|
bool state = HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_AFK);
|
||||||
|
|
||||||
// afk player not allowed in battleground
|
// afk player not allowed in battleground
|
||||||
if (state && InBattleground())
|
if (state && InBattleground() && !InArena())
|
||||||
LeaveBattleground();
|
LeaveBattleground();
|
||||||
|
|
||||||
return state;
|
return state;
|
||||||
|
|||||||
Reference in New Issue
Block a user