From 1ed9c3082c8d96f13ed3a73cfbcad0824a30aa5b Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Wed, 19 Nov 2014 15:00:09 -0500 Subject: [PATCH] Add see invis check to tracking packet --- zone/entity.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zone/entity.cpp b/zone/entity.cpp index eeebfa88d..ed5b99219 100644 --- a/zone/entity.cpp +++ b/zone/entity.cpp @@ -2960,7 +2960,8 @@ bool EntityList::MakeTrackPacket(Client *client) Group *g = client->GetGroup(); 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; MobDistance = it->second->DistNoZ(*client);