mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 08:21:28 +00:00
Add see invis check to tracking packet
This commit is contained in:
parent
37936b63c4
commit
1ed9c3082c
@ -2960,7 +2960,8 @@ bool EntityList::MakeTrackPacket(Client *client)
|
|||||||
Group *g = client->GetGroup();
|
Group *g = client->GetGroup();
|
||||||
|
|
||||||
for (auto it = mob_list.cbegin(); it != mob_list.cend(); ++it) {
|
for (auto it = mob_list.cbegin(); it != mob_list.cend(); ++it) {
|
||||||
if (!it->second || it->second == client || !it->second->IsTrackable())
|
if (!it->second || it->second == client || !it->second->IsTrackable() ||
|
||||||
|
it->second->IsInvisible(client))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
MobDistance = it->second->DistNoZ(*client);
|
MobDistance = it->second->DistNoZ(*client);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user