Adjustments to spell facing - Adjusted HaveAtClient to accept Object* (still accepts all subordinates) - Use grid searcher to find players in visibility range for unit - Use client cache instead of "See or Detect" to decide who to send updates to - Adjusted SendUpdateToPlayer to send createobject packet only if not known to client

(cherry picked from commit c0693a6ee52d31840ab2ee878c4881884b857638)
This commit is contained in:
r00ty-tc authored and Aokromes committed 2016-05-12 08:17:08 +02:00
1 parent 32e4388a8c
commit f51e4e1ca7
4 files changed
+15 -12

No files matched your search

+4 -1
View File
@@ -239,7 +239,10 @@ void Object::SendUpdateToPlayer(Player* player)
UpdateData upd(player->GetMapId());
WorldPacket packet;
BuildCreateUpdateBlockForPlayer(&upd, player);
if (player->HaveAtClient(this))
BuildValuesUpdateBlockForPlayer(&upd, player);
else
BuildCreateUpdateBlockForPlayer(&upd, player);
upd.BuildPacket(&packet);
player->GetSession()->SendPacket(&packet);
}