diff --git a/Source/Scripts/Spells/DeathKnight.cs b/Source/Scripts/Spells/DeathKnight.cs index 7417fd645..e27fbc973 100644 --- a/Source/Scripts/Spells/DeathKnight.cs +++ b/Source/Scripts/Spells/DeathKnight.cs @@ -21,6 +21,7 @@ namespace Scripts.Spells.DeathKnight public const uint ArmySkeletonTransform = 127527; public const uint ArmySpikedGhoulTransform = 127525; public const uint ArmySuperZombieTransform = 127526; + public const uint BlindingSleetSlow = 317898; public const uint Blood = 137008; public const uint BloodPlague = 55078; public const uint BloodShieldAbsorb = 77535; @@ -204,6 +205,26 @@ namespace Scripts.Spells.DeathKnight } } + [Script] // 207167 - Blinding Sleet + class spell_dk_blinding_sleet : AuraScript + { + public override bool Validate(SpellInfo spellInfo) + { + return ValidateSpellInfo(SpellIds.BlindingSleetSlow); + } + + void HandleOnRemove(AuraEffect aurEff, AuraEffectHandleModes mode) + { + if (GetTargetApplication().GetRemoveMode() == AuraRemoveMode.Expire) + GetTarget().CastSpell(GetTarget(), SpellIds.BlindingSleetSlow, true); + } + + public override void Register() + { + AfterEffectRemove.Add(new EffectApplyHandler(HandleOnRemove, 0, AuraType.ModConfuse, AuraEffectHandleModes.Real)); + } + } + [Script] // 50842 - Blood Boil class spell_dk_blood_boil : SpellScript {