From 3616d9577690e424d6b839a464bc86e5aa68bf79 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 7 Feb 2021 10:29:57 -0500 Subject: [PATCH] Fix --- commands/games-mp/chess.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands/games-mp/chess.js b/commands/games-mp/chess.js index 7801f7f2..c53c39ac 100644 --- a/commands/games-mp/chess.js +++ b/commands/games-mp/chess.js @@ -174,13 +174,12 @@ module.exports = class ChessCommand extends Command { if (gameState.turn === 'black') blackTime -= timeTaken - 5000; if (gameState.turn === 'white') whiteTime -= timeTaken - 5000; const choice = this.parseSAN(gameState, moves, turn.first().content.toUpperCase().match(turnRegex)); - game.move(choice[0], choice[1]); - console.log(gameState.pieces[choice[0]]); if (gameState.pieces[choice[0]].toUpperCase() === 'P') { fiftyRuleMove = 0; } else { fiftyRuleMove++; } + game.move(choice[0], choice[1]); } } this.client.games.delete(msg.channel.id);