Core/Spells: fixed a logic mistake in Combustion's script which was causing the damage effect to fire for each selected DoT effect instead of summing up all of their values and firing once

This commit is contained in:
Ovahlord committed 2023-05-30 15:31:30 +02:00
1 parent 67fa80392e
commit 4a3da93788
1 file changed
+4 -3
+4 -3
View File
@@ -1734,10 +1734,11 @@ class spell_mage_combustion : public SpellScript
if (!aurEff->GetSpellInfo()->IsAffected(SPELLFAMILY_MAGE, GetSpellInfo()->Effects[effIndex].SpellClassMask))
continue;
basePoints = CalculatePct(aurEff->GetAmount(), scalingFactor);
if (basePoints > 0)
caster->CastSpell(target, SPELL_MAGE_COMBUSTION_DAMAGE, CastSpellExtraArgs(true).AddSpellBP0(basePoints));
basePoints += CalculatePct(aurEff->GetAmount(), scalingFactor);
}
if (basePoints > 0)
caster->CastSpell(target, SPELL_MAGE_COMBUSTION_DAMAGE, CastSpellExtraArgs(true).AddSpellBP0(basePoints));
}
void Register() override