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:
@@ -466,6 +466,25 @@ namespace Scripts.Spells.Azerite
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[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
|
[Script] // 277253 - Heart of Azeroth
|
||||||
class spell_item_heart_of_azeroth : AuraScript
|
class spell_item_heart_of_azeroth : AuraScript
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4224,4 +4224,18 @@ namespace Scripts.Spells.Items
|
|||||||
DoCheckEffectProc.Add(new CheckEffectProcHandler(CheckHealth, 0, AuraType.ProcTriggerSpell));
|
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));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user