From 562e638a65453c3080cb3aec1311cbe5d086ee9d Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Sat, 18 Sep 2021 23:34:15 +0200 Subject: [PATCH] Core/Spells: Conflagrate will no longer bypass resistances and damage reducing auras --- src/server/scripts/Spells/spell_warlock.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/server/scripts/Spells/spell_warlock.cpp b/src/server/scripts/Spells/spell_warlock.cpp index de3dc3c2c8..a4e6cb6f0a 100644 --- a/src/server/scripts/Spells/spell_warlock.cpp +++ b/src/server/scripts/Spells/spell_warlock.cpp @@ -188,6 +188,7 @@ class spell_warl_banish : public SpellScript private: bool _removed = false; }; + // 17962 - Conflagrate class spell_warl_conflagrate : public SpellScript { @@ -202,13 +203,13 @@ class spell_warl_conflagrate : public SpellScript { int32 damage = aurEff->GetAmount(); damage *= aurEff->GetTotalTicks(); - SetHitDamage(CalculatePct(damage, GetSpellInfo()->Effects[EFFECT_1].CalcValue(GetCaster()))); + SetEffectValue(CalculatePct(damage, GetSpellInfo()->Effects[EFFECT_1].CalcValue(GetCaster()))); } } void Register() override { - OnEffectHitTarget.Register(&spell_warl_conflagrate::HandleHit, EFFECT_0, SPELL_EFFECT_SCHOOL_DAMAGE); + OnEffectLaunchTarget.Register(&spell_warl_conflagrate::HandleHit, EFFECT_0, SPELL_EFFECT_SCHOOL_DAMAGE); } };