[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
@@ -854,7 +854,7 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
MessageID = SENSE_ANIMAL;
}
Mob *ClosestMob = entity_list.GetClosestMobByBodyType(this, bt);
Mob *ClosestMob = entity_list.GetClosestMobByBodyType(this, bt, true);
if(ClosestMob)
{