This commit is contained in:
Daniel Odendahl Jr
2018-10-10 15:19:24 +00:00
parent b455469b36
commit 5a139ec497
2 changed files with 9 additions and 2 deletions
+6
View File
@@ -64,6 +64,12 @@ module.exports = class BattleCommand extends Command {
battle.attacker.heal(battle.attacker.mp);
battle.attacker.useMP(battle.attacker.mp);
battle.reset();
} else if (choice === 'final') {
await msg.say(`${battle.attacker} uses their final move, dealing **100** damage!`);
battle.defender.dealDamage(100);
battle.attacker.useMP(100);
battle.attacker.usedFinal = true;
battle.reset();
} else if (choice === 'run') {
await msg.say(`${battle.attacker} flees!`);
battle.attacker.forfeit();