This commit is contained in:
Daniel Odendahl Jr
2018-10-09 21:02:15 +00:00
parent bae943bff7
commit 526af92cd5
+1 -1
View File
@@ -38,7 +38,7 @@ module.exports = class BattleCommand extends Command {
}
}
while (!battle.winner) {
const choice = await battle.attacker.chooseAction();
const choice = await battle.attacker.chooseAction(msg);
if (choice === 'fight') {
const damage = Math.floor(Math.random() * (battle.defender.guarding ? 5 : 50)) + 1;
await msg.say(`${battle.attacker} deals **${damage}** damage!`);