diff --git a/web/static/saga.js b/web/static/saga.js index 4a45443..da3b491 100644 --- a/web/static/saga.js +++ b/web/static/saga.js @@ -479,9 +479,9 @@ .show(); window.saga.spells.filter(x => !!x.power && rowData.spells.includes(x.name)).forEach((spell) => { - const elementalRes = ''; + const elementalRes = 0; const resArmor = 0; - const resAccessory = charStats.accessor ? charStats.accessor.resistance[spell.element.toLowerCase()] : 0; + const resAccessory = charStats.accessory ? charStats.accessory.resistance[spell.element.toLowerCase()] : 0; let def = calc.magicalAttack(enemyMagic, charMagic, elementalRes, resArmor, resAccessory, spell.power); let magicUp = calc.magicalAttack(enemyMagic, charMagic, elementalRes, resArmor, resAccessory, spell.power, { targetMagicUp: true,