From 8a44494d93d5e4b62bea6ce02931b28f7d1bf260 Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Wed, 8 Apr 2020 19:14:00 +0200
Subject: [PATCH] Fix typo in Sittuyin rules

---
 client/src/variants/Sittuyin.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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");
       }
     }
-- 
2.44.0