mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
Fixed few typos.
This commit is contained in:
parent
4e2c42799c
commit
05f42d995f
3 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue