This commit is contained in:
Dragon Fire
2021-01-23 16:17:50 -05:00
parent 565a4378a5
commit 5246947b6a
+1 -1
View File
@@ -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);