Core/Spells: Fixed spell value calculation for consumables

Closes #18385
This commit is contained in:
Shauren
2016-12-03 16:15:21 +01:00
parent 22396f1bcf
commit 4e1a263e7c

View File

@@ -483,13 +483,7 @@ int32 SpellEffectInfo::CalcValue(Unit const* caster /*= nullptr*/, int32 const*
if (!_spellInfo->Scaling.ScalesFromItemLevel)
{
if (!_spellInfo->HasAttribute(SPELL_ATTR11_SCALES_WITH_ITEM_LEVEL))
{
GtSpellScalingEntry const* gtScaling = sSpellScalingGameTable.GetRow(level);
if (_spellInfo->Scaling.Class > 0)
value = GetSpellScalingColumnForClass(gtScaling, _spellInfo->Scaling.Class);
else
value = gtScaling->Item;
}
value = GetSpellScalingColumnForClass(sSpellScalingGameTable.GetRow(level), _spellInfo->Scaling.Class);
else
{
uint32 effectiveItemLevel = itemLevel != -1 ? uint32(itemLevel) : 1u;