Scripts/Spells: Fixed demon hunter Chaos Strike for initial specialization

This commit is contained in:
Shauren
2025-07-24 23:33:33 +02:00
parent 4a1b881a0c
commit af47b10cff
2 changed files with 26 additions and 0 deletions

View File

@@ -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);