diff options
| author | ariel- <ariel-@users.noreply.github.com> | 2016-07-30 04:06:37 -0300 | 
|---|---|---|
| committer | ariel- <ariel-@users.noreply.github.com> | 2016-07-30 04:06:37 -0300 | 
| commit | c271e196c8bb02705d8a3e4a7432bbc2959f0b1a (patch) | |
| tree | d3ac0856248500e48a00efe4f6c8a2131a65a96d /src | |
| parent | ea9b44d7499508884b42d54d1a51d61242bc7b1d (diff) | |
Core/Spell: fix one logic fail when calculating level penalty
(http://wow.gamepedia.com/index.php?title=Spell_power&oldid=1751770#Spells_learned_before_level_20)
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/Entities/Unit/Unit.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 25d68e10121..ac924f39a03 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -2261,7 +2261,7 @@ float Unit::CalculateLevelPenalty(SpellInfo const* spellProto) const      float LvlPenalty = 0.0f;      if (spellProto->SpellLevel < 20) -        LvlPenalty = 20.0f - spellProto->SpellLevel * 3.75f; +        LvlPenalty = (20.0f - spellProto->SpellLevel) * 3.75f;      float LvlFactor = (float(spellProto->SpellLevel) + 6.0f) / float(getLevel());      if (LvlFactor > 1.0f)          LvlFactor = 1.0f; | 
