mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 12:31:31 +00:00
Exclude client pets from MQ2 target detection
Probably could use some PVP rules but what do I know :P
This commit is contained in:
parent
160cd609bf
commit
c5e7b18637
@ -13252,6 +13252,11 @@ void Client::Handle_OP_TargetCommand(const EQApplicationPacket *app)
|
|||||||
GetTarget()->IsTargeted(1);
|
GetTarget()->IsTargeted(1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
else if (GetTaget()->IsPetOwnerClient())
|
||||||
|
{
|
||||||
|
GetTarget()->IsTargeted(1);
|
||||||
|
return;
|
||||||
|
}
|
||||||
else if (GetBindSightTarget())
|
else if (GetBindSightTarget())
|
||||||
{
|
{
|
||||||
if (DistanceSquared(GetBindSightTarget()->GetPosition(), GetTarget()->GetPosition()) > (zone->newzone_data.maxclip*zone->newzone_data.maxclip))
|
if (DistanceSquared(GetBindSightTarget()->GetPosition(), GetTarget()->GetPosition()) > (zone->newzone_data.maxclip*zone->newzone_data.maxclip))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user