Core/Player: Fix issue with players being kicked when going AFK in arenas

This commit is contained in:
tobmaps
2011-05-13 01:24:15 +07:00
parent ecc7fe24bb
commit 27d34e9494
+1 -1
View File
@@ -2002,7 +2002,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;