mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[9982] Group out of range member must based at client existances.
Signed-off-by: VladimirMangos <vladimir@getmangos.com> Also move empty mask check from build function to caller.
This commit is contained in:
parent
ce85076033
commit
d0398b94f6
3 changed files with 10 additions and 11 deletions
|
|
@ -1016,16 +1016,16 @@ void Group::UpdatePlayerOutOfRange(Player* pPlayer)
|
|||
if(!pPlayer || !pPlayer->IsInWorld())
|
||||
return;
|
||||
|
||||
Player *player;
|
||||
if (pPlayer->GetGroupUpdateFlag() == GROUP_UPDATE_FLAG_NONE)
|
||||
return;
|
||||
|
||||
WorldPacket data;
|
||||
pPlayer->GetSession()->BuildPartyMemberStatsChangedPacket(pPlayer, &data);
|
||||
|
||||
for(GroupReference *itr = GetFirstMember(); itr != NULL; itr = itr->next())
|
||||
{
|
||||
player = itr->getSource();
|
||||
if (player && player != pPlayer && !pPlayer->isVisibleFor(player,player->GetViewPoint()))
|
||||
player->GetSession()->SendPacket(&data);
|
||||
}
|
||||
if (Player *player = itr->getSource())
|
||||
if (player != pPlayer && !player->HaveAtClient(pPlayer))
|
||||
player->GetSession()->SendPacket(&data);
|
||||
}
|
||||
|
||||
void Group::BroadcastPacket(WorldPacket *packet, bool ignorePlayersInBGRaid, int group, uint64 ignore)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue