fixed enemy hpcatcher/mpcatcher stats

This commit is contained in:
tmont 2021-02-26 22:06:09 -08:00
parent 2536015a18
commit 19e4c4199f

View File

@ -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) {