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
+19
View File
@@ -465,6 +465,25 @@ namespace Scripts.Spells.Azerite
AfterEffectProc.Add(new EffectProcHandler(TriggerSoulBarrier, 0, AuraType.Dummy));
}
}
[Script] // 304086 - Azerite Fortification
class spell_item_conflict_wearer_on_stun_proc : AuraScript
{
bool CheckProc(AuraEffect aurEff, ProcEventInfo eventInfo)
{
Spell procSpell = eventInfo.GetProcSpell();
if (procSpell == null)
return false;
return procSpell.GetSpellInfo().HasAura(AuraType.ModStun)
|| procSpell.GetSpellInfo().HasAura(AuraType.ModStunDisableGravity);
}
public override void Register()
{
DoCheckEffectProc.Add(new CheckEffectProcHandler(CheckProc, 0, AuraType.ProcTriggerSpell));
}
}
[Script] // 277253 - Heart of Azeroth
class spell_item_heart_of_azeroth : AuraScript