[BugFix] Remove detection of client pets from Sense[Summoned|Undead|Animal] spells (#1601)

* Remove detection of client pets from Sense[Summoned|Undead|Animal]

* Use IsPetOwnerClient() function instead of individual checks

* Add option to exclude client pets from GetClosestMobByBodyType

* Add parameter

Co-authored-by: Noudess <noudess@gmail.com>
This commit is contained in:
Paul Coene
2021-10-14 10:52:29 -04:00
committed by GitHub
parent 6a962f2591
commit cef873f793
3 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -479,7 +479,7 @@ public:
Corpse* GetClosestCorpse(Mob* sender, const char *Name);
NPC* GetClosestBanker(Mob* sender, uint32 &distance);
void CameraEffect(uint32 duration, uint32 intensity);
Mob* GetClosestMobByBodyType(Mob* sender, bodyType BodyType);
Mob* GetClosestMobByBodyType(Mob* sender, bodyType BodyType, bool skip_client_pets=false);
void ForceGroupUpdate(uint32 gid);
void SendGroupLeave(uint32 gid, const char *name);
void SendGroupJoin(uint32 gid, const char *name);