diff --git a/web/static/saga.js b/web/static/saga.js index a9a4ab6..81d4f33 100644 --- a/web/static/saga.js +++ b/web/static/saga.js @@ -489,27 +489,27 @@ $enemyInfoModal.find(`.enemy-spells .magic-enemy-dmg-${spell.name}`).text(magicDmg(def)); $enemyInfoModal.find(`.enemy-spells .magic-enemy-dmg-${spell.name}-magic-up`).text(magicDmg(magicUp)); - - // hpcatcher - def = calc.hpCatcherAttack(rowData.magic, 999, 0, rowData.hp); - magicUp = calc.hpCatcherAttack(rowData.magic, 999, 0, rowData.hp, { - targetMagicUp: true, - }); - - let prefix = '.magic-enemy-dmg-HPCatcher'; - $enemyInfoModal.find(prefix).text(magicDmg(def)); - $enemyInfoModal.find(prefix + '-magic-up').text(magicDmg(magicUp)); - - // mpcatcher - def = calc.mpCatcherAttack(rowData.magic, 999, 0, rowData.mp); - magicUp = calc.mpCatcherAttack(rowData.magic, 999, 0, rowData.mp, { - attackerMagicUp: true, - }); - - prefix = '.magic-enemy-dmg-MPCatcher'; - $enemyInfoModal.find(prefix).text(magicDmg(def)); - $enemyInfoModal.find(prefix + '-magic-up').text(magicDmg(magicUp)); }); + + // hpcatcher + def = calc.hpCatcherAttack(rowData.magic, 999, 0, rowData.hp); + magicUp = calc.hpCatcherAttack(rowData.magic, 999, 0, rowData.hp, { + targetMagicUp: true, + }); + + prefix = '.magic-enemy-dmg-HPCatcher'; + $enemyInfoModal.find(prefix).text(magicDmg(def)); + $enemyInfoModal.find(prefix + '-magic-up').text(magicDmg(magicUp)); + + // mpcatcher + def = calc.mpCatcherAttack(rowData.magic, 999, 0, rowData.mp); + magicUp = calc.mpCatcherAttack(rowData.magic, 999, 0, rowData.mp, { + attackerMagicUp: true, + }); + + prefix = '.magic-enemy-dmg-MPCatcher'; + $enemyInfoModal.find(prefix).text(magicDmg(def)); + $enemyInfoModal.find(prefix + '-magic-up').text(magicDmg(magicUp)); } if (charStats.speed !== null) {