mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
Make SE_SummonPC only clear aggro for beneficial spells
This commit is contained in:
parent
7b4908957d
commit
ef6b2976a3
@ -2116,7 +2116,10 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
|
|||||||
caster->GetY(), caster->GetZ(), caster->GetHeading(), 2,
|
caster->GetY(), caster->GetZ(), caster->GetHeading(), 2,
|
||||||
SummonPC);
|
SummonPC);
|
||||||
Message(Chat::Yellow, "You have been summoned!");
|
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
|
} else
|
||||||
caster->Message(Chat::Red, "This spell can only be cast on players.");
|
caster->Message(Chat::Red, "This spell can only be cast on players.");
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user