I hate my life

This commit is contained in:
Daniel Odendahl Jr
2017-06-11 14:31:52 +00:00
parent 30d14f21f5
commit 14ea70d03b
+2
View File
@@ -69,6 +69,7 @@ module.exports = class BattleCommand extends Command {
if (!turn.size) { if (!turn.size) {
await msg.say('Time!'); await msg.say('Time!');
forfeit(); forfeit();
break;
} }
const choice = turn.first().content.toLowerCase(); const choice = turn.first().content.toLowerCase();
if (choice === 'fight') { if (choice === 'fight') {
@@ -94,6 +95,7 @@ module.exports = class BattleCommand extends Command {
} else if (choice === 'run') { } else if (choice === 'run') {
await msg.say(`**${username}** flees!`); await msg.say(`**${username}** flees!`);
forfeit(); forfeit();
break;
} else { } else {
await msg.say('I do not understand what you want to do.'); await msg.say('I do not understand what you want to do.');
} }