*Fix calculation of level-based spell damage.
--HG-- branch : trunk
This commit is contained in:
+3
-1
@@ -10471,7 +10471,9 @@ int32 Unit::CalculateSpellDamage(SpellEntry const* spellProto, uint8 effect_inde
|
|||||||
if(spellProto->Attributes & SPELL_ATTR_LEVEL_DAMAGE_CALCULATION && spellProto->spellLevel &&
|
if(spellProto->Attributes & SPELL_ATTR_LEVEL_DAMAGE_CALCULATION && spellProto->spellLevel &&
|
||||||
spellProto->Effect[effect_index] != SPELL_EFFECT_WEAPON_PERCENT_DAMAGE &&
|
spellProto->Effect[effect_index] != SPELL_EFFECT_WEAPON_PERCENT_DAMAGE &&
|
||||||
spellProto->Effect[effect_index] != SPELL_EFFECT_KNOCK_BACK)
|
spellProto->Effect[effect_index] != SPELL_EFFECT_KNOCK_BACK)
|
||||||
value = int32(value*0.25f*exp(getLevel()*(70-spellProto->spellLevel)/1000.0f));
|
//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));
|
||||||
|
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user