[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:
Wowka321 2010-05-27 17:32:23 +04:00 committed by VladimirMangos
parent d0398b94f6
commit 6ce82e4914
3 changed files with 3 additions and 5 deletions

View file

@ -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;