[7821] Fixed typo in comment and var. name.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
KAPATEJIb 2009-05-14 10:44:49 +04:00 committed by VladimirMangos
parent 4edbdb02f6
commit 28c7c95b87
2 changed files with 5 additions and 5 deletions

View file

@ -6559,14 +6559,14 @@ void Player::_ApplyItemBonuses(ItemPrototype const *proto, uint8 slot, bool appl
float minDamage = proto->Damage[0].DamageMin;
float maxDamage = proto->Damage[0].DamageMax;
int32 extraDPS = 0;
// If set dpsMod in ScalingStatValue use it for min (70% from avernge), max (130% from averange) damage
// If set dpsMod in ScalingStatValue use it for min (70% from average), max (130% from average) damage
if (ssv)
{
if (extraDPS = ssv->getDPSMod(proto->ScalingStatValue))
{
float averange = extraDPS * proto->Delay / 1000.0f;
minDamage = 0.7f * averange;
maxDamage = 1.3f * averange;
float average = extraDPS * proto->Delay / 1000.0f;
minDamage = 0.7f * average;
maxDamage = 1.3f * average;
}
}
if (minDamage > 0 )