From 7214aea5e851f51a6f0a26b87264e2788200a98e Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Mon, 3 Jul 2017 15:16:48 +0000 Subject: [PATCH] Pants --- commands/games/battle.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/games/battle.js b/commands/games/battle.js index e7f23f0e..3a270a4d 100644 --- a/commands/games/battle.js +++ b/commands/games/battle.js @@ -66,7 +66,7 @@ module.exports = class BattleCommand extends Command { await msg.say(stripIndents` ${user}, do you **fight**, **guard**, **special**, or **run**? **${msg.author.username}**: ${userHP}HP - **${opponent === 'ai' ? 'AI' : opponent.username}**: ${oppoHP}HP + **${opponent === 'AI' ? 'AI' : opponent.username}**: ${oppoHP}HP `); const turn = await msg.channel.awaitMessages((res) => res.author.id === id, { max: 1, @@ -81,6 +81,7 @@ module.exports = class BattleCommand extends Command { } else { const choices = ['fight', 'guard', 'special']; choice = choices[Math.floor(Math.random() * choices.length)]; + await msg.say(`${user} chooses to **${choice}**!`); } if (choice === 'fight') { const damage = Math.floor(Math.random() * (guard ? 10 : 100)) + 1;