mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
Scripts/Spells: Fix healing part of demon hunter talent "Fel Devastation" (#30489)
This commit is contained in:
3
sql/updates/world/master/2024_12_09_01_world.sql
Normal file
3
sql/updates/world/master/2024_12_09_01_world.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_dh_fel_devastation';
|
||||
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
|
||||
(212084, 'spell_dh_fel_devastation');
|
||||
@@ -409,6 +409,29 @@ class spell_dh_eye_beam : public AuraScript
|
||||
}
|
||||
};
|
||||
|
||||
// 212084 - Fel Devastation
|
||||
class spell_dh_fel_devastation : public AuraScript
|
||||
{
|
||||
bool Validate(SpellInfo const* /*spellInfo*/) override
|
||||
{
|
||||
return ValidateSpellInfo({ SPELL_DH_FEL_DEVASTATION_HEAL });
|
||||
}
|
||||
|
||||
void HandlePeriodicEffect(AuraEffect const* aurEff) const
|
||||
{
|
||||
if (Unit* caster = GetCaster())
|
||||
caster->CastSpell(caster, SPELL_DH_FEL_DEVASTATION_HEAL, CastSpellExtraArgsInit{
|
||||
.TriggerFlags = TRIGGERED_IGNORE_CAST_IN_PROGRESS | TRIGGERED_DONT_REPORT_CAST_ERROR,
|
||||
.TriggeringAura = aurEff
|
||||
});
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
OnEffectPeriodic += AuraEffectPeriodicFn(spell_dh_fel_devastation::HandlePeriodicEffect, EFFECT_0, SPELL_AURA_PERIODIC_TRIGGER_SPELL);
|
||||
}
|
||||
};
|
||||
|
||||
// 206416 - First Blood
|
||||
class spell_dh_first_blood : public AuraScript
|
||||
{
|
||||
@@ -745,6 +768,7 @@ void AddSC_demon_hunter_spell_scripts()
|
||||
RegisterSpellScript(spell_dh_darkglare_boon);
|
||||
RegisterSpellScript(spell_dh_darkness);
|
||||
RegisterSpellScript(spell_dh_eye_beam);
|
||||
RegisterSpellScript(spell_dh_fel_devastation);
|
||||
RegisterSpellScript(spell_dh_sigil_of_chains);
|
||||
RegisterSpellScript(spell_dh_tactical_retreat);
|
||||
RegisterSpellScript(spell_dh_vengeful_retreat_damage);
|
||||
|
||||
Reference in New Issue
Block a user