aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_dh.cpp38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_dh.cpp b/src/server/scripts/Spells/spell_dh.cpp
index f33e807db87..6cf15c6587b 100644
--- a/src/server/scripts/Spells/spell_dh.cpp
+++ b/src/server/scripts/Spells/spell_dh.cpp
@@ -89,6 +89,8 @@ enum DemonHunterSpells
SPELL_DH_FEL_DEVASTATION = 212084,
SPELL_DH_FEL_DEVASTATION_DMG = 212105,
SPELL_DH_FEL_DEVASTATION_HEAL = 212106,
+ SPELL_DH_FEL_FLAME_FORTIFICATION_TALENT = 389705,
+ SPELL_DH_FEL_FLAME_FORTIFICATION_MOD_DAMAGE = 393009,
SPELL_DH_FEL_RUSH = 195072,
SPELL_DH_FEL_RUSH_DMG = 192611,
SPELL_DH_FEL_RUSH_GROUND = 197922,
@@ -432,6 +434,41 @@ class spell_dh_fel_devastation : public AuraScript
}
};
+// Called by 258920 - Immolation Aura
+class spell_dh_fel_flame_fortification : public AuraScript
+{
+ bool Validate(SpellInfo const* /*spell*/) override
+ {
+ return ValidateSpellInfo({ SPELL_DH_FEL_FLAME_FORTIFICATION_TALENT, SPELL_DH_FEL_FLAME_FORTIFICATION_MOD_DAMAGE });
+ }
+
+ bool Load() override
+ {
+ return GetUnitOwner()->HasAura(SPELL_DH_FEL_FLAME_FORTIFICATION_TALENT);
+ }
+
+ void OnApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) const
+ {
+ Unit* target = GetTarget();
+ target->CastSpell(target, SPELL_DH_FEL_FLAME_FORTIFICATION_MOD_DAMAGE, CastSpellExtraArgsInit{
+ .TriggerFlags = TRIGGERED_IGNORE_CAST_IN_PROGRESS | TRIGGERED_DONT_REPORT_CAST_ERROR,
+ .TriggeringAura = aurEff,
+ .OriginalCastId = aurEff->GetBase()->GetCastId()
+ });
+ }
+
+ void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) const
+ {
+ GetTarget()->RemoveAurasDueToSpell(SPELL_DH_FEL_FLAME_FORTIFICATION_MOD_DAMAGE);
+ }
+
+ void Register() override
+ {
+ AfterEffectApply += AuraEffectApplyFn(spell_dh_fel_flame_fortification::OnApply, EFFECT_0, SPELL_AURA_PERIODIC_TRIGGER_SPELL, AURA_EFFECT_HANDLE_REAL);
+ AfterEffectRemove += AuraEffectRemoveFn(spell_dh_fel_flame_fortification::OnRemove, EFFECT_0, SPELL_AURA_PERIODIC_TRIGGER_SPELL, AURA_EFFECT_HANDLE_REAL);
+ }
+};
+
// 206416 - First Blood
class spell_dh_first_blood : public AuraScript
{
@@ -769,6 +806,7 @@ void AddSC_demon_hunter_spell_scripts()
RegisterSpellScript(spell_dh_darkness);
RegisterSpellScript(spell_dh_eye_beam);
RegisterSpellScript(spell_dh_fel_devastation);
+ RegisterSpellScript(spell_dh_fel_flame_fortification);
RegisterSpellScript(spell_dh_sigil_of_chains);
RegisterSpellScript(spell_dh_tactical_retreat);
RegisterSpellScript(spell_dh_vengeful_retreat_damage);