From 82ebddf985c855828ff829b69f631d258ec63961 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 9 Apr 2020 18:28:35 -0400 Subject: [PATCH] Fix --- commands/games-mp/dots-and-boxes.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/games-mp/dots-and-boxes.js b/commands/games-mp/dots-and-boxes.js index af6794ea..6828b7f5 100644 --- a/commands/games-mp/dots-and-boxes.js +++ b/commands/games-mp/dots-and-boxes.js @@ -113,7 +113,9 @@ module.exports = class DotsAndBoxesCommand extends Command { userTurn = !userTurn; } } - winner = userOwned === oppoOwned ? null : userOwned > oppoOwned ? msg.author : opponent; + winner = userOwned.length === oppoOwned.length + ? null + : userOwned.length > oppoOwned.length ? msg.author : opponent; this.client.games.delete(msg.channel.id); return msg.say(winner ? `Congrats, ${winner}!` : 'Looks like it\'s a draw...'); } catch (err) {