Core/Spells: Conflagrate will no longer bypass resistances and damage reducing auras

This commit is contained in:
Ovahlord committed 2021-09-18 23:34:15 +02:00
1 parent 6c7e2830c1
commit 562e638a65
1 file changed
+3 -2
+3 -2
View File
@@ -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);
}
};