mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 15:57:54 +02:00
Fix
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user