From 8a7fcfe7b5e9f8de1d4f74b0f5c813e974769e61 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 23 Mar 2024 23:36:21 -0400 Subject: [PATCH] Fix --- commands/games-mp/tic-tac-toe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/games-mp/tic-tac-toe.js b/commands/games-mp/tic-tac-toe.js index 9ad1d50a..c42341fc 100644 --- a/commands/games-mp/tic-tac-toe.js +++ b/commands/games-mp/tic-tac-toe.js @@ -86,7 +86,7 @@ module.exports = class TicTacToeCommand extends Command { sides[opponent.bot && !userTurn ? choice : Number.parseInt(choice, 10) - 1] = sign; taken.push(choice); const win = this.verifyWin(sides, msg.author, opponent); - if (taken.length === 8 && !win) win = 'tie'; + if (taken.length === 8 && !win) winner = 'tie'; if (win) winner = win; if (lastTurnTimeout) lastTurnTimeout = false; userTurn = !userTurn;