From 033dde4ca8f1beb4d926a7e46e1ab565c9c0c9a8 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 23 Jan 2021 19:52:15 -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 dd3697c4..7da807a8 100644 --- a/commands/games-mp/chess.js +++ b/commands/games-mp/chess.js @@ -139,7 +139,7 @@ module.exports = class ChessCommand extends Command { const prevGamePiece = prevPieces ? prevPieces[`${cols[col]}${row}`] : null; if (piece) { const parsed = this.pickImage(piece); - if (prevPieces && !prevGamePiece) { + if (prevPieces && (!prevGamePiece || piece !== prevGamePiece)) { drawImageWithTint(ctx, this.images[parsed.color][parsed.name], 'green', w, h, 52, 52); } else { ctx.drawImage(this.images[parsed.color][parsed.name], w, h, 52, 52);