Scripts/Evoker: Implemented Pyre (Red)

Port From (https://github.com/TrinityCore/TrinityCore/commit/76a84fcc868d794af439fe8441b0f820db764b87)
This commit is contained in:
hondacrx
2023-06-24 09:24:33 -04:00
parent 4b76323d6a
commit b7c9eac397
+20
View File
@@ -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));
}
}
}