X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FZen.js;h=7edbe40a6fa8baf0b05b7fecdeb72ae8bd9db1ff;hp=eb6748d0d8761f1188932a3c9c5f678435950db7;hb=0f7762c1d87e21d1c13ff0f38bd234b64b0a29d9;hpb=da9e846e41622111a4f877742dc0b35406635b5c diff --git a/client/src/variants/Zen.js b/client/src/variants/Zen.js index eb6748d0..7edbe40a 100644 --- a/client/src/variants/Zen.js +++ b/client/src/variants/Zen.js @@ -79,6 +79,7 @@ export class ZenRules extends ChessRules { } if ( V.OnBoard(i, j) && + this.board[i][j] != V.EMPTY && this.getColor(i, j) == oppCol && this.getPiece(i, j) == asA ) { @@ -88,7 +89,8 @@ export class ZenRules extends ChessRules { promotionPieces.forEach(p => { moves.push(this.getBasicMove([x, y], [i, j], { c: color, p: p })); }); - } else { + } + else { // All other cases moves.push(this.getBasicMove([x, y], [i, j])); }