aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAqua Deus <95978183+aquadeus@users.noreply.github.com>2025-01-17 17:52:29 +0100
committerGitHub <noreply@github.com>2025-01-17 17:52:29 +0100
commit5ea4b26f7a32880834419fc3997f8b7908d30508 (patch)
tree07be8189efcef95c0ac1ea2ec4af207371dca66e /src
parent73ef7d166ec99148f8c41182b799928851ddbf9a (diff)
Scripts/Spells: Fix demon hunter talent "Feast of Souls" (#30501)
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_dh.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_dh.cpp b/src/server/scripts/Spells/spell_dh.cpp
index a04d03adb3f..da84f70c52f 100644
--- a/src/server/scripts/Spells/spell_dh.cpp
+++ b/src/server/scripts/Spells/spell_dh.cpp
@@ -741,6 +741,33 @@ class spell_dh_eye_beam : public AuraScript
}
};
+// Called by 228477 - Soul Cleave
+class spell_dh_feast_of_souls : public SpellScript
+{
+ bool Validate(SpellInfo const* /*spellInfo*/) override
+ {
+ return ValidateSpellInfo({ SPELL_DH_FEAST_OF_SOULS, SPELL_DH_FEAST_OF_SOULS_PERIODIC_HEAL });
+ }
+
+ bool Load() override
+ {
+ return GetCaster()->HasAura(SPELL_DH_FEAST_OF_SOULS);
+ }
+
+ void HandleHeal() const
+ {
+ GetCaster()->CastSpell(GetCaster(), SPELL_DH_FEAST_OF_SOULS_PERIODIC_HEAL, CastSpellExtraArgsInit{
+ .TriggerFlags = TRIGGERED_IGNORE_CAST_IN_PROGRESS | TRIGGERED_DONT_REPORT_CAST_ERROR,
+ .TriggeringSpell = GetSpell()
+ });
+ }
+
+ void Register() override
+ {
+ AfterCast += SpellCastFn(spell_dh_feast_of_souls::HandleHeal);
+ }
+};
+
// 212084 - Fel Devastation
class spell_dh_fel_devastation : public AuraScript
{
@@ -1543,6 +1570,7 @@ void AddSC_demon_hunter_spell_scripts()
RegisterSpellScript(spell_dh_demon_spikes);
RegisterSpellScript(spell_dh_essence_break);
RegisterSpellScript(spell_dh_eye_beam);
+ RegisterSpellScript(spell_dh_feast_of_souls);
RegisterSpellScript(spell_dh_fel_devastation);
RegisterSpellScript(spell_dh_fel_flame_fortification);
RegisterSpellScript(spell_dh_felblade);