From 012f6f8a07186b97d6853d3615431f73b292fd3d Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 7 Feb 2021 14:06:08 -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 9e0a2f71..0bc8b8cc 100644 --- a/commands/games-mp/chess.js +++ b/commands/games-mp/chess.js @@ -183,7 +183,7 @@ module.exports = class ChessCommand extends Command { game.move(choice[0], choice[1]); const finalRow = gameState.turn === 'black' ? '8' : '1'; if (gameState.pieces[choice[1]].toUpperCase() === 'P' && choice[1].endsWith(finalRow)) { - game.board.configuation.pieces[choice[1]] = gameState.turn = 'black' + game.board.configuration.pieces[choice[1]] = gameState.turn = 'black' ? choice[2] : choice[2].toLowerCase() }