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
|
|
@ -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*/
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue