mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Scripts/Spells: Fixed demon hunter Chaos Strike for initial specialization
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user