aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2016-04-19 17:22:46 +0200
committerShauren <shauren.trinity@gmail.com>2016-04-19 17:22:46 +0200
commit4a2bcb483a0418db33dea7c2d6bc6623c8a85ad0 (patch)
tree17cbe6e84e6acb06904b21c64d56a8432f41a665
parente7c203334b97d4614855fad306d1bb88b84e2228 (diff)
Core/Spells: Fixed spell effect value calculation for spells having MaxScalingLevel defined
-rw-r--r--src/server/game/Spells/SpellInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellInfo.cpp b/src/server/game/Spells/SpellInfo.cpp
index 29afc7f3825..ae361883ed7 100644
--- a/src/server/game/Spells/SpellInfo.cpp
+++ b/src/server/game/Spells/SpellInfo.cpp
@@ -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;