diff --git a/sql/updates/world/master/2026_02_23_00_world.sql b/sql/updates/world/master/2026_02_23_00_world.sql new file mode 100644 index 0000000000..755a5ca2f3 --- /dev/null +++ b/sql/updates/world/master/2026_02_23_00_world.sql @@ -0,0 +1,3 @@ +DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_dh_consume_energize'; +INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES +(473662, 'spell_dh_consume_energize'); diff --git a/src/server/scripts/Spells/spell_dh.cpp b/src/server/scripts/Spells/spell_dh.cpp index fe8bb8da02..63f88e22a0 100644 --- a/src/server/scripts/Spells/spell_dh.cpp +++ b/src/server/scripts/Spells/spell_dh.cpp @@ -65,6 +65,7 @@ enum DemonHunterSpells SPELL_DH_COLLECTIVE_ANGUISH_EYE_BEAM = 391057, SPELL_DH_COLLECTIVE_ANGUISH_EYE_BEAM_DAMAGE = 391058, SPELL_DH_COLLECTIVE_ANGUISH_FEL_DEVASTATION = 393831, + SPELL_DH_CONSUME_ENERGIZE = 1261710, SPELL_DH_CONSUME_SOUL_HAVOC_DEMON = 228556, SPELL_DH_CONSUME_SOUL_HAVOC_LESSER = 228542, SPELL_DH_CONSUME_SOUL_HAVOC_SHATTERED = 228540, @@ -556,6 +557,28 @@ class spell_dh_collective_anguish_eye_beam : public AuraScript } }; +// 473662 - Consume +class spell_dh_consume_energize : public SpellScript +{ + bool Validate(SpellInfo const* /*spellInfo*/) override + { + return ValidateSpellInfo ({ SPELL_DH_CONSUME_ENERGIZE }); + } + + void HandleAfterCast() const + { + GetCaster()->CastSpell(GetCaster(), SPELL_DH_CONSUME_ENERGIZE, CastSpellExtraArgsInit{ + .TriggerFlags = TRIGGERED_IGNORE_CAST_IN_PROGRESS | TRIGGERED_DONT_REPORT_CAST_ERROR, + .TriggeringSpell = GetSpell() + }); + } + + void Register() override + { + AfterCast += SpellCastFn(spell_dh_consume_energize::HandleAfterCast); + } +}; + // 203794 - Consume Soul class spell_dh_consume_soul_vengeance_lesser : public SpellScript { @@ -2446,6 +2469,7 @@ void AddSC_demon_hunter_spell_scripts() RegisterSpellScript(spell_dh_charred_warblades); RegisterSpellScript(spell_dh_collective_anguish); RegisterSpellScript(spell_dh_collective_anguish_eye_beam); + RegisterSpellScript(spell_dh_consume_energize); RegisterSpellScript(spell_dh_consume_soul_vengeance_lesser); RegisterSpellScript(spell_dh_critical_chaos); RegisterSpellScript(spell_dh_cycle_of_binding);