diff options
author | Aqua Deus <95978183+aquadeus@users.noreply.github.com> | 2024-12-09 19:12:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-09 19:12:00 +0100 |
commit | bf0fe871948d196afcfe0c271c225fa3834e32fc (patch) | |
tree | 8d067ac89504fc11c4eee04dd01a956df2e01317 /src | |
parent | 749df7b62ef7945c96e2cf759419fb6b3938e6fd (diff) |
Scripts/Spells: Fix healing part of demon hunter talent "Fel Devastation" (#30489)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Spells/spell_dh.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_dh.cpp b/src/server/scripts/Spells/spell_dh.cpp index 329c30e1ea6..f33e807db87 100644 --- a/src/server/scripts/Spells/spell_dh.cpp +++ b/src/server/scripts/Spells/spell_dh.cpp @@ -409,6 +409,29 @@ class spell_dh_eye_beam : public AuraScript } }; +// 212084 - Fel Devastation +class spell_dh_fel_devastation : public AuraScript +{ + bool Validate(SpellInfo const* /*spellInfo*/) override + { + return ValidateSpellInfo({ SPELL_DH_FEL_DEVASTATION_HEAL }); + } + + void HandlePeriodicEffect(AuraEffect const* aurEff) const + { + if (Unit* caster = GetCaster()) + caster->CastSpell(caster, SPELL_DH_FEL_DEVASTATION_HEAL, CastSpellExtraArgsInit{ + .TriggerFlags = TRIGGERED_IGNORE_CAST_IN_PROGRESS | TRIGGERED_DONT_REPORT_CAST_ERROR, + .TriggeringAura = aurEff + }); + } + + void Register() override + { + OnEffectPeriodic += AuraEffectPeriodicFn(spell_dh_fel_devastation::HandlePeriodicEffect, EFFECT_0, SPELL_AURA_PERIODIC_TRIGGER_SPELL); + } +}; + // 206416 - First Blood class spell_dh_first_blood : public AuraScript { @@ -745,6 +768,7 @@ void AddSC_demon_hunter_spell_scripts() RegisterSpellScript(spell_dh_darkglare_boon); RegisterSpellScript(spell_dh_darkness); RegisterSpellScript(spell_dh_eye_beam); + RegisterSpellScript(spell_dh_fel_devastation); RegisterSpellScript(spell_dh_sigil_of_chains); RegisterSpellScript(spell_dh_tactical_retreat); RegisterSpellScript(spell_dh_vengeful_retreat_damage); |