diff options
| author | megamage <none@none> | 2008-12-19 10:03:00 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2008-12-19 10:03:00 -0600 |
| commit | 2027e1918c2166371245fc4acd74a4c2567d2737 (patch) | |
| tree | f825d5e327214e1843a27a6e2bd205acc9fbf165 /src/game/Unit.cpp | |
| parent | c27ef3542b8c3bc89c2b20be5b886a8036b46709 (diff) | |
*Try to fix the bug that some -AP spells increase players' AP.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
| -rw-r--r-- | src/game/Unit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 0e820073dfd..11cc5b73899 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -10502,7 +10502,7 @@ int32 Unit::CalculateSpellDamage(SpellEntry const* spellProto, uint8 effect_inde spellProto->Effect[effect_index] != SPELL_EFFECT_KNOCK_BACK) //there are many more: slow speed, -healing pct //value = int32(value*0.25f*exp(getLevel()*(70-spellProto->spellLevel)/1000.0f)); - value = int32(value * getLevel() / (spellProto->spellLevel ? spellProto->spellLevel : 1)); + value = int32(value * (int32)getLevel() / (int32)(spellProto->spellLevel ? spellProto->spellLevel : 1)); return value; } |
