Make SE_SummonPC only clear aggro for beneficial spells

This commit is contained in:
Michael Cook (mackal) 2019-08-14 23:06:34 -04:00
parent 7b4908957d
commit ef6b2976a3

View File

@ -2116,7 +2116,10 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
caster->GetY(), caster->GetZ(), caster->GetHeading(), 2,
SummonPC);
Message(Chat::Yellow, "You have been summoned!");
entity_list.ClearAggro(this);
// only for beneficial spells like Call of the Hero
// This clear probably isn't actually needed, but need to investigate more
if (IsBeneficialSpell(spell_id))
entity_list.ClearAggro(this);
} else
caster->Message(Chat::Red, "This spell can only be cast on players.");