From 136ad2cff0435ea563e651eeb0cf665ec932c571 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sat, 3 Feb 2024 17:45:20 -0500 Subject: [PATCH] Scripts/Spells: Implement Blinding Sleet Port From (https://github.com/TrinityCore/TrinityCore/commit/36aac83ea37e667fb8e87fa9f8e97b5f0a38f235) --- Source/Scripts/Spells/DeathKnight.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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 {