diff options
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r-- | src/game/Player.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index d8b8e4d8b65..1a1bffa4b0a 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -6045,6 +6045,17 @@ void Player::SendMessageToSetInRange(WorldPacket *data, float dist, bool self, b VisitNearbyWorldObject(dist, notifier); } +void Player::SendMessageToSet(WorldPacket *data, Player const* skipped_rcvr) +{ + if (skipped_rcvr != this) + GetSession()->SendPacket(data); + + // we use World::GetMaxVisibleDistance() because i cannot see why not use a distance + // update: replaced by GetMap()->GetVisibilityDistance() + Trinity::MessageDistDeliverer notifier(this, data, GetMap()->GetVisibilityDistance(), false, skipped_rcvr); + VisitNearbyWorldObject(GetMap()->GetVisibilityDistance(), notifier); +} + void Player::SendDirectMessage(WorldPacket *data) { if (m_session) |