Core: Minor cleanup

This commit is contained in:
Shauren
2011-05-12 10:43:11 +02:00
parent 169e4bfa2b
commit c98438ae8f
4 changed files with 10 additions and 10 deletions
+1 -2
View File
@@ -7939,12 +7939,11 @@ void Player::_ApplyWeaponDamage(uint8 slot, ItemTemplate const *proto, ScalingSt
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 average), max (130% from average) damage
if (ssv)
{
extraDPS = ssv->getDPSMod(proto->ScalingStatValue);
int32 extraDPS = ssv->getDPSMod(proto->ScalingStatValue);
if (extraDPS)
{
float average = extraDPS * proto->Delay / 1000.0f;