From e982be523a0d53ad5f0507ab431867f382b4ef68 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Mon, 30 Jan 2023 08:35:04 -0500 Subject: [PATCH] Scripts/DK: Implemented Howling Blast Port From (https://github.com/TrinityCore/TrinityCore/commit/58cd4e58f7d2f382903c8abe065b697d3a0bcb6b) --- Source/Scripts/Spells/DeathKnight.cs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Source/Scripts/Spells/DeathKnight.cs b/Source/Scripts/Spells/DeathKnight.cs index 4882692bc..057b7b5ea 100644 --- a/Source/Scripts/Spells/DeathKnight.cs +++ b/Source/Scripts/Spells/DeathKnight.cs @@ -35,6 +35,7 @@ namespace Scripts.Spells.DeathKnight public const uint DeathStrikeOffhand = 66188; public const uint FesteringWound = 194310; public const uint Frost = 137006; + public const uint FrostFever = 55095; public const uint FrostScythe = 207230; public const uint GlyphOfFoulMenagerie = 58642; public const uint GlyphOfTheGeist = 58640; @@ -576,6 +577,25 @@ namespace Scripts.Spells.DeathKnight OnEffectHitTarget.Add(new EffectHandler(HandleScriptEffect, 0, SpellEffectName.ScriptEffect)); } } + + [Script] // 49184 - Howling Blast + class spell_dk_howling_blast : SpellScript + { + public override bool Validate(SpellInfo spellInfo) + { + return ValidateSpellInfo(SpellIds.FrostFever); + } + + void HandleFrostFever(uint effIndex) + { + GetCaster().CastSpell(GetHitUnit(), SpellIds.FrostFever); + } + + public override void Register() + { + OnEffectHitTarget.Add(new EffectHandler(HandleFrostFever, 0, SpellEffectName.SchoolDamage)); + } + } [Script] // 206940 - Mark of Blood class spell_dk_mark_of_blood : AuraScript