Scripts/Spells: Fixed Icefury talent proc and frost shock energize

Port From (https://github.com/TrinityCore/TrinityCore/commit/e64e6f4963ae7c6efe54fd5e6124158202478b3f)
This commit is contained in:
hondacrx
2022-05-04 10:59:14 -04:00
parent d8aee90419
commit 14ab083e53
+21
View File
@@ -745,6 +745,27 @@ namespace Scripts.Spells.Shaman
}
}
[Script] // 210714 - Icefury
class spell_sha_icefury : AuraScript
{
public override bool Validate(SpellInfo spellInfo)
{
return ValidateSpellInfo(SpellIds.FrostShockEnergize);
}
void HandleEffectProc(AuraEffect aurEff, ProcEventInfo eventInfo)
{
Unit caster = GetCaster();
if (caster != null)
caster.CastSpell(caster, SpellIds.FrostShockEnergize, new CastSpellExtraArgs(TriggerCastFlags.IgnoreCastInProgress));
}
public override void Register()
{
OnEffectProc.Add(new EffectProcHandler(HandleEffectProc, 1, AuraType.AddPctModifier));
}
}
[Script] // 23551 - Lightning Shield T2 Bonus
class spell_sha_item_lightning_shield : AuraScript
{