mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
Core/Spells: Fixed spell effect value calculation for spells having MaxScalingLevel defined
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user