mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +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') {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "94.0.1",
|
||||
"version": "94.0.2",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user