*Do not calculate level-based spell damage twice. This fixed the bug that some +ap buff give mobs too high damage.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-05 13:09:51 -06:00
parent b7ec91f72d
commit 21f35e15d9

View File

@@ -10613,7 +10613,7 @@ int32 Unit::CalculateSpellDamage(SpellEntry const* spellProto, uint8 effect_inde
}
}
if(spellProto->Attributes & SPELL_ATTR_LEVEL_DAMAGE_CALCULATION && spellProto->spellLevel &&
if(!basePointsPerLevel && (spellProto->Attributes & SPELL_ATTR_LEVEL_DAMAGE_CALCULATION && spellProto->spellLevel) &&
spellProto->Effect[effect_index] != SPELL_EFFECT_WEAPON_PERCENT_DAMAGE &&
spellProto->Effect[effect_index] != SPELL_EFFECT_KNOCK_BACK)
//there are many more: slow speed, -healing pct