Core/Spells: Fixed flat SPELLMOD_DAMAGE_MULTIPLIER calculation

(cherry picked from commit 35ab476f1691870a67c8ede78e9c37618f6bd383)
This commit is contained in:
Shauren authored and Aokromes committed 2016-07-20 13:04:59 +02:00
1 parent 7fcaf84c49
commit 5c6802d509
1 file changed
+3 -3
+3 -3
View File
@@ -598,10 +598,10 @@ float SpellEffectInfo::CalcValueMultiplier(Unit* caster, Spell* spell) const
float SpellEffectInfo::CalcDamageMultiplier(Unit* caster, Spell* spell) const
{
float multiplier = DamageMultiplier;
float multiplierPercent = DamageMultiplier * 100.0f;
if (Player* modOwner = (caster ? caster->GetSpellModOwner() : NULL))
modOwner->ApplySpellMod(_spellInfo->Id, SPELLMOD_DAMAGE_MULTIPLIER, multiplier, spell);
return multiplier;
modOwner->ApplySpellMod(_spellInfo->Id, SPELLMOD_DAMAGE_MULTIPLIER, multiplierPercent, spell);
return multiplierPercent / 100.0f;
}
bool SpellEffectInfo::HasRadius() const