Scripts/Spells: Added proc requirements to a few auras that have SPELL_ATTR3_CAN_PROC_FROM_PROCS attribute

Port From (https://github.com/TrinityCore/TrinityCore/commit/9740219850d14852a018a023c7db57b8752f8f5c)
This commit is contained in:
hondacrx
2023-05-02 17:27:52 -04:00
parent 141ed88de0
commit e2156193bc
2 changed files with 33 additions and 0 deletions
+14
View File
@@ -4224,4 +4224,18 @@ namespace Scripts.Spells.Items
DoCheckEffectProc.Add(new CheckEffectProcHandler(CheckHealth, 0, AuraType.ProcTriggerSpell));
}
}
[Script] // 302385 - Resurrect Health
class spell_item_zanjir_scaleguard_greatcloak : AuraScript
{
bool CheckProc(AuraEffect aurEff, ProcEventInfo eventInfo)
{
return eventInfo.GetSpellInfo() != null && eventInfo.GetSpellInfo().HasEffect(SpellEffectName.Resurrect);
}
public override void Register()
{
DoCheckEffectProc.Add(new CheckEffectProcHandler(CheckProc, 0, AuraType.ProcTriggerSpell));
}
}
}