Fixed damage calculation bug causing overcounting of neutral damage in unpowdered weapons

This commit is contained in:
b 2021-03-17 08:38:45 -07:00
parent 1be0d6b782
commit e6185248d6

View file

@ -81,11 +81,12 @@ function calculateSpellDamage(stats, spellConversions, rawModifier, pctModifier,
neutralRemainingRaw[0] = Math.floor(round_near(neutralRemainingRaw[0] - min_diff));
neutralRemainingRaw[1] = Math.floor(round_near(neutralRemainingRaw[1] - max_diff));
}
damages[0] = neutralRemainingRaw;
damages[element+1][0] += powder.min;
damages[element+1][1] += powder.max;
}
damages[0] = neutralRemainingRaw;
let damageMult = damageMultiplier;
let melee = false;
// If we are doing melee calculations: