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:
1 parent
67fa80392e
commit
4a3da93788
1 file changed
+4
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user