From 364601cffdc67c4db89f0b3c5aadfaaf45f7fe08 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 7 May 2020 17:49:42 -0400 Subject: [PATCH] Fix --- commands/games-mp/battle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/games-mp/battle.js b/commands/games-mp/battle.js index 91d515ee..e8aa9f62 100644 --- a/commands/games-mp/battle.js +++ b/commands/games-mp/battle.js @@ -36,7 +36,7 @@ module.exports = class BattleCommand extends Command { return msg.say('Looks like they declined...'); } } - while (battle.winner !== 'time' || !battle.winner) { + while (battle.winner !== 'time' && battle.winner !== null) { const choice = await battle.attacker.chooseAction(msg); if (choice === 'attack') { const damage = randomRange(battle.defender.guard ? 5 : 20, battle.defender.guard ? 20 : 50);