Scripts/DK: Implemented Howling Blast

Port From (https://github.com/TrinityCore/TrinityCore/commit/58cd4e58f7d2f382903c8abe065b697d3a0bcb6b)
This commit is contained in:
hondacrx
2023-01-30 08:35:04 -05:00
parent 3e6588bc55
commit e982be523a
+20
View File
@@ -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