Core/Spells: Fixed spell effect value calculation for spells having MaxScalingLevel defined

This commit is contained in:
Shauren
2016-04-19 17:22:46 +02:00
parent e7c203334b
commit 4a2bcb483a

View File

@@ -470,7 +470,7 @@ int32 SpellEffectInfo::CalcValue(Unit const* caster /*= nullptr*/, int32 const*
if (!_spellInfo->HasAttribute(SPELL_ATTR11_SCALES_WITH_ITEM_LEVEL) && _spellInfo->HasAttribute(SPELL_ATTR10_UNK12))
level = _spellInfo->BaseLevel;
if (_spellInfo->Scaling.MaxScalingLevel && _spellInfo->Scaling.MaxScalingLevel > level)
if (_spellInfo->Scaling.MaxScalingLevel && _spellInfo->Scaling.MaxScalingLevel < level)
level = _spellInfo->Scaling.MaxScalingLevel;
float value = 0.0f;