mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Scripts/Spells: Fixed demon hunter Chaos Strike for initial specialization
This commit is contained in:
3
sql/updates/world/master/2025_07_24_00_world.sql
Normal file
3
sql/updates/world/master/2025_07_24_00_world.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_dh_chaos_strike_initial';
|
||||
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
|
||||
(344862,'spell_dh_chaos_strike_initial');
|
||||
@@ -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