From 0451a4a8ea7c66e1a0dfa275e0850d2fb4cc477f Mon Sep 17 00:00:00 2001 From: b Date: Sat, 9 Jan 2021 03:37:01 -0600 Subject: [PATCH] Fix syntax --- display.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/display.js b/display.js index cc63b36..b0bd1df 100644 --- a/display.js +++ b/display.js @@ -329,7 +329,7 @@ function displaySpellDamage(parent_elem, build, spell, spellIdx) { else if (part.type === "total") { let total_damage = 0; for (let i in part.factors) { - total_damage += save_damages[i] * factors[i]; + total_damage += save_damages[i] * part.factors[i]; } let averageLabel = document.createElement("p"); averageLabel.textContent = "Average: "+Math.round(total_damage);