This commit is contained in:
Dragon Fire
2021-01-23 19:15:15 -05:00
parent 0a293565d9
commit b214b038da
+1 -1
View File
@@ -134,7 +134,7 @@ module.exports = class ChessCommand extends Command {
const prevGamePiece = prevPieces ? prevPieces[`${cols[col]}${row}`] : null;
if (piece) {
const parsed = this.pickImage(piece);
if (prevGamePiece && piece !== prevGamePiece) {
if (!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);