diff options
| author | Shauren <shauren.trinity@gmail.com> | 2017-09-04 00:09:37 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2017-09-04 00:09:37 +0200 |
| commit | 99346b78c5fa514e02297e648b08ea2794689921 (patch) | |
| tree | d88a9f4a062fb8f14f04b21d562472b78458914d | |
| parent | 59e9bb4224402483a969071b08e4352c4e361ef3 (diff) | |
Core/Spells: Fixed calculating spell value for spells with SPELL_ATTR10_USE_SPELL_BASE_LEVEL_FOR_SCALING
Closes #19987
| -rw-r--r-- | src/server/game/Spells/SpellInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellInfo.cpp b/src/server/game/Spells/SpellInfo.cpp index 2a8b98af510..bb2f497313a 100644 --- a/src/server/game/Spells/SpellInfo.cpp +++ b/src/server/game/Spells/SpellInfo.cpp @@ -472,7 +472,7 @@ int32 SpellEffectInfo::CalcValue(Unit const* caster /*= nullptr*/, int32 const* else if (caster) level = caster->getLevel(); - if (!_spellInfo->HasAttribute(SPELL_ATTR11_SCALES_WITH_ITEM_LEVEL) && _spellInfo->HasAttribute(SPELL_ATTR10_USE_SPELL_BASE_LEVEL_FOR_SCALING)) + if (_spellInfo->BaseLevel && !_spellInfo->HasAttribute(SPELL_ATTR11_SCALES_WITH_ITEM_LEVEL) && _spellInfo->HasAttribute(SPELL_ATTR10_USE_SPELL_BASE_LEVEL_FOR_SCALING)) level = _spellInfo->BaseLevel; if (_spellInfo->Scaling.MinScalingLevel && _spellInfo->Scaling.MinScalingLevel > level) |
