Fixed few typos.

This commit is contained in:
tomrus88 2010-04-05 01:33:23 +04:00
parent 4e2c42799c
commit 05f42d995f
3 changed files with 4 additions and 4 deletions

View file

@ -11308,8 +11308,6 @@ int32 Unit::CalculateSpellDamage(SpellEntry const* spellProto, SpellEffectIndex
int32 randomPoints = int32(spellProto->EffectDieSides[effect_index]);
float comboDamage = spellProto->EffectPointsPerComboPoint[effect_index];
int32 value = basePoints;
if(randomPoints != 0)
{
// range can have positive and negative values, so order its for irand
@ -11320,6 +11318,8 @@ int32 Unit::CalculateSpellDamage(SpellEntry const* spellProto, SpellEffectIndex
basePoints += randvalue;
}
int32 value = basePoints;
// random damage
if(comboDamage != 0 && unitPlayer && target && (target->GetGUID() == unitPlayer->GetComboTarget()))
value += (int32)(comboDamage * comboPoints);