From: Benjamin Auder Date: Wed, 8 Apr 2020 17:14:00 +0000 (+0200) Subject: Fix typo in Sittuyin rules X-Git-Url: https://git.auder.net/variants/img/current/vendor/pieces/common.css?a=commitdiff_plain;h=8a44494d93d5e4b62bea6ce02931b28f7d1bf260;p=vchess.git Fix typo in Sittuyin rules --- diff --git a/client/src/variants/Sittuyin.js b/client/src/variants/Sittuyin.js index 23ffcee7..004d626b 100644 --- a/client/src/variants/Sittuyin.js +++ b/client/src/variants/Sittuyin.js @@ -195,7 +195,7 @@ export class SittuyinRules extends ChessRules { addPromotion([x - shiftX, y]); for (let step of V.steps[V.BISHOP]) { const [i, j] = [x + step[0], y + step[1]]; - if (V.OnBoard(i, j) && this.board[i][j] != V.EMPTY) + if (V.OnBoard(i, j) && this.board[i][j] == V.EMPTY) addPromotion([i, j], "moveTo"); } }