From 5246947b6a0a9842a5c5954c7e1fdd4f0d3fc4c4 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 23 Jan 2021 16:17:50 -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 222687ca..3936dd6a 100644 --- a/commands/games-mp/chess.js +++ b/commands/games-mp/chess.js @@ -139,7 +139,7 @@ module.exports = class ChessCommand extends Command { ctx.drawImage(this.images[parsed.color][parsed.name], w, h, 52, 52); } } - if (prevGameState && !piece) { + if (prevGameState && !piece && prevGamePiece) { ctx.fillStyle = 'green'; ctx.globalAlpha = 0.5; ctx.fillRect(w, h, 52, 52);