diff options
| author | QAston <none@none> | 2009-07-10 10:07:24 +0200 |
|---|---|---|
| committer | QAston <none@none> | 2009-07-10 10:07:24 +0200 |
| commit | 73fb97adb0ae0f6262012c1ad2ba157829aebd40 (patch) | |
| tree | 5168130f64f9ab331582015e8c0f64d5f669b684 /src | |
| parent | 3eb1d6701d4bd30b48f7fe4b7546357b69cf23da (diff) | |
*Bring back old damage scaling with level formula.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/Unit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index a6314fa16b8..30af6796c9b 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -11396,8 +11396,8 @@ int32 Unit::CalculateSpellDamage(SpellEntry const* spellProto, uint8 effect_inde spellProto->EffectApplyAuraName[effect_index] != SPELL_AURA_MOD_INCREASE_SPEED && spellProto->EffectApplyAuraName[effect_index] != SPELL_AURA_MOD_DECREASE_SPEED) //there are many more: slow speed, -healing pct - //value = int32(value*0.25f*exp(getLevel()*(70-spellProto->spellLevel)/1000.0f)); - value = int32(value * (int32)getLevel() / (int32)(spellProto->spellLevel ? spellProto->spellLevel : 1)); + value = int32(value*0.25f*exp(getLevel()*(70-spellProto->spellLevel)/1000.0f)); + //value = int32(value * (int32)getLevel() / (int32)(spellProto->spellLevel ? spellProto->spellLevel : 1)); return value; } |
