Fix to weapon secondary damage (#579)

This commit is contained in:
GuybrushGit
2017-11-29 02:50:42 +00:00
committed by brotalnia
parent dbaccee43e
commit baf6623be0
2 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -421,7 +421,7 @@ void Player::CalculateMinMaxDamage(WeaponAttackType attType, bool normalized, fl
weapon_mindamage = BASE_MINDAMAGE;
weapon_maxdamage = BASE_MAXDAMAGE;
}
else if (attType == RANGED_ATTACK) // add ammo DPS to ranged damage
else if (attType == RANGED_ATTACK && index == 0) // add ammo DPS to ranged damage
{
weapon_mindamage += GetAmmoDPS() * att_speed;
weapon_maxdamage += GetAmmoDPS() * att_speed;