Avoid increasing player count per team when re-logging (#165)
This commit is contained in:
parent
53a6a9d176
commit
49b5f58f13
@ -1309,7 +1309,11 @@ void BattleGround::AddPlayer(Player* plr)
|
||||
// Add to list/maps
|
||||
m_Players[guid] = bp;
|
||||
|
||||
UpdatePlayersCountByTeam(team, false); // +1 player
|
||||
bool const isInBattleground = IsPlayerInBattleGround(guid);
|
||||
if (!isInBattleground)
|
||||
{
|
||||
UpdatePlayersCountByTeam(team, false); // +1 player
|
||||
}
|
||||
|
||||
WorldPacket data;
|
||||
sBattleGroundMgr.BuildPlayerJoinedBattleGroundPacket(&data, plr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user