mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 03:31:08 +00:00
[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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user