mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 14:20:51 +02:00
Fix
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user