From b7c9eac3974afc34e55a1544baf1dbd3a524107c Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sat, 24 Jun 2023 09:24:33 -0400 Subject: [PATCH] Scripts/Evoker: Implemented Pyre (Red) Port From (https://github.com/TrinityCore/TrinityCore/commit/76a84fcc868d794af439fe8441b0f820db764b87) --- Source/Scripts/Spells/Evoker.cs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Source/Scripts/Spells/Evoker.cs b/Source/Scripts/Spells/Evoker.cs index e04e01865..f1ce42c0d 100644 --- a/Source/Scripts/Spells/Evoker.cs +++ b/Source/Scripts/Spells/Evoker.cs @@ -18,6 +18,7 @@ namespace Scripts.Spells.Evoker public const uint LivingFlame = 361469; public const uint LivingFlameDamage = 361500; public const uint LivingFlameHeal = 361509; + public const uint PyreDamage = 357212; public const uint SoarRacial = 369536; } @@ -113,4 +114,23 @@ namespace Scripts.Spells.Evoker OnEffectLaunchTarget.Add(new EffectHandler(HandleLaunchTarget, 0, SpellEffectName.Dummy)); } } + + [Script] // 393568 - Pyre + class spell_evo_pyre : SpellScript + { + public override bool Validate(SpellInfo spellInfo) + { + return ValidateSpellInfo(SpellIds.PyreDamage); + } + + void HandleDamage(uint effIndex) + { + GetCaster().CastSpell(GetHitUnit().GetPosition(), SpellIds.PyreDamage, new CastSpellExtraArgs(true)); + } + + public override void Register() + { + OnEffectHitTarget.Add(new EffectHandler(HandleDamage, 0, SpellEffectName.Dummy)); + } + } }