From 2fc01c699ec7a5c027a5712500e19c407f51ac67 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 23 Jan 2021 15:25:16 -0500 Subject: [PATCH] Fix --- commands/games-mp/chess.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/games-mp/chess.js b/commands/games-mp/chess.js index 470a19b4..a3ae23c5 100644 --- a/commands/games-mp/chess.js +++ b/commands/games-mp/chess.js @@ -62,7 +62,7 @@ module.exports = class ChessCommand extends Command { while (!game.exportJson().checkMate) { const user = game.exportJson().turn === 'black' ? opponent : msg.author; const gameState = game.exportJson(); - if (opponent.bot && !userTurn) { + if (user.bot) { game.aiMove(3); } else { await msg.say(stripIndents`