[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

@ -632,7 +632,7 @@ void WorldSession::HandleRaidReadyCheckFinishedOpcode( WorldPacket & /*recv_data
// Is any reaction need? // Is any reaction need?
} }
bool WorldSession::BuildPartyMemberStatsChangedPacket(Player *player, WorldPacket *data) void WorldSession::BuildPartyMemberStatsChangedPacket(Player *player, WorldPacket *data)
{ {
uint32 mask = player->GetGroupUpdateFlag(); uint32 mask = player->GetGroupUpdateFlag();
@ -786,8 +786,6 @@ bool WorldSession::BuildPartyMemberStatsChangedPacket(Player *player, WorldPacke
else else
*data << uint64(0); *data << uint64(0);
} }
return true;
} }
/*this procedure handles clients CMSG_REQUEST_PARTY_MEMBER_STATS request*/ /*this procedure handles clients CMSG_REQUEST_PARTY_MEMBER_STATS request*/

View file

@ -1586,7 +1586,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;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "9982" #define REVISION_NR "9983"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__