From 19e4c4199f41f725cc4553dff219c3879ba9142b Mon Sep 17 00:00:00 2001 From: tmont Date: Fri, 26 Feb 2021 22:06:09 -0800 Subject: [PATCH] fixed enemy hpcatcher/mpcatcher stats --- web/static/saga.js | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) 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) {