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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user