Exclude client pets from MQ2 target detection

Probably could use some PVP rules but what do I know :P
This commit is contained in:
Michael Cook (mackal) 2017-04-01 17:50:27 -04:00
parent 3098b11080
commit 53978f0ef9

View File

@ -13255,6 +13255,11 @@ void Client::Handle_OP_TargetCommand(const EQApplicationPacket *app)
GetTarget()->IsTargeted(1);
return;
}
else if (GetTaget()->IsPetOwnerClient())
{
GetTarget()->IsTargeted(1);
return;
}
else if (GetBindSightTarget())
{
if (DistanceSquared(GetBindSightTarget()->GetPosition(), GetTarget()->GetPosition()) > (zone->newzone_data.maxclip*zone->newzone_data.maxclip))