diff options
author | Shauren <shauren.trinity@gmail.com> | 2025-07-24 23:33:33 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2025-07-24 23:33:33 +0200 |
commit | af47b10cff5159c5b53a293cbed6d8b0c132ece1 (patch) | |
tree | bc927501af8b7130ebd7f2046bc13734d3c75e78 /src/server/scripts | |
parent | 4a1b881a0c050a11f69bf52a289de1db87f56aab (diff) |
Scripts/Spells: Fixed demon hunter Chaos Strike for initial specialization
Diffstat (limited to 'src/server/scripts')
-rw-r--r-- | src/server/scripts/Spells/spell_dh.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_dh.cpp b/src/server/scripts/Spells/spell_dh.cpp index f5e27f9da75..d3d307bb75e 100644 --- a/src/server/scripts/Spells/spell_dh.cpp +++ b/src/server/scripts/Spells/spell_dh.cpp @@ -320,6 +320,28 @@ class spell_dh_chaos_strike : public AuraScript } }; +// 344862 - Chaos Strike +class spell_dh_chaos_strike_initial : public SpellScript +{ + bool Validate(SpellInfo const* /*spellInfo*/) override + { + return ValidateSpellInfo({ SPELL_DH_CHAOS_STRIKE }); + } + + void HandleHit(SpellEffIndex /*effIndex*/) const + { + GetCaster()->CastSpell(GetHitUnit(), SPELL_DH_CHAOS_STRIKE, CastSpellExtraArgsInit{ + .TriggerFlags = TRIGGERED_IGNORE_GCD | TRIGGERED_IGNORE_POWER_COST | TRIGGERED_IGNORE_CAST_IN_PROGRESS | TRIGGERED_DONT_REPORT_CAST_ERROR, + .TriggeringSpell = GetSpell() + }); + } + + void Register() override + { + OnEffectHitTarget += SpellEffectFn(spell_dh_chaos_strike_initial::HandleHit, EFFECT_0, SPELL_EFFECT_DUMMY); + } +}; + // Called by 188499 - Blade Dance and 210152 - Death Sweep class spell_dh_chaos_theory : public SpellScript { @@ -1691,6 +1713,7 @@ void AddSC_demon_hunter_spell_scripts() RegisterSpellScript(spell_dh_calcified_spikes); RegisterSpellScript(spell_dh_calcified_spikes_periodic); RegisterSpellScript(spell_dh_chaos_strike); + RegisterSpellScript(spell_dh_chaos_strike_initial); RegisterSpellScript(spell_dh_chaos_theory); RegisterSpellScript(spell_dh_chaos_theory_drop_charge); RegisterSpellScript(spell_dh_chaotic_transformation); |