aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2015-03-09 00:50:09 +0100
committerShauren <shauren.trinity@gmail.com>2015-03-09 00:50:09 +0100
commit14c5e67a89aab6546b213a047b13a086597aed03 (patch)
tree5b5f2a63b2b5e5409ac40e43977649b4dc9cafbf /src
parente15ba34444b4484cebbe2070e0f205ccf9c69a16 (diff)
Core/Spells: Fixed level value scaling for spells with scaling class < -1
Closes #14133
Diffstat (limited to 'src')
-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 65b43a436d7..2a72cdc49be 100644
--- a/src/server/game/Spells/SpellInfo.cpp
+++ b/src/server/game/Spells/SpellInfo.cpp
@@ -463,7 +463,7 @@ int32 SpellEffectInfo::CalcValue(Unit const* caster /*= nullptr*/, int32 const*
{
if (!_spellInfo->HasAttribute(SPELL_ATTR11_UNK2))
{
- if (GtSpellScalingEntry const* gtScaling = sGtSpellScalingStore.EvaluateTable(level - 1, (_spellInfo->Scaling.Class > 0 ? _spellInfo->Scaling.Class - 1 : MAX_CLASSES - 1)))
+ if (GtSpellScalingEntry const* gtScaling = sGtSpellScalingStore.EvaluateTable(level - 1, (_spellInfo->Scaling.Class > 0 ? _spellInfo->Scaling.Class : ((MAX_CLASSES - 1 /*last class*/) - _spellInfo->Scaling.Class)) - 1))
value = gtScaling->value;
}
else