Core/Spells: Fixed flat SPELLMOD_DAMAGE_MULTIPLIER calculation

(cherry picked from commit 35ab476f16)
This commit is contained in:
Shauren
2016-04-30 13:02:39 +02:00
parent 804bfb1f10
commit dc1654b6c3

View File

@@ -525,10 +525,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