This commit is contained in:
Daniel Odendahl Jr
2018-10-10 22:14:56 +00:00
parent 281418ed8a
commit 73b5aa7b9b
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -60,8 +60,9 @@ module.exports = class BattleCommand extends Command {
battle.attacker.useMP(50);
battle.reset();
} else if (choice === 'cure') {
await msg.say(`${battle.attacker} heals **${battle.attacker.mp}** HP!`);
battle.attacker.heal(Math.round(battle.attacker.mp / 2));
const amount = Math.round(battle.attacker.mp / 2);
await msg.say(`${battle.attacker} heals **${amount}** HP!`);
battle.attacker.heal(amount);
battle.attacker.useMP(battle.attacker.mp);
battle.reset();
} else if (choice === 'final') {