Games open in a new tab from main Hall (to not lose challenges)
[vchess.git] / client / src / variants / Makruk.js
index 2da534f..2eeeaea 100644 (file)
@@ -15,10 +15,7 @@ export class MakrukRules extends ChessRules {
     return Object.assign(
       {},
       ChessRules.PawnSpecs,
-      {
-        twoSquares: false,
-        promotions: [V.QUEEN]
-      }
+      { promotions: [V.QUEEN] }
     );
   }
 
@@ -104,7 +101,7 @@ export class MakrukRules extends ChessRules {
   }
 
   isAttackedByBishop(sq, color) {
-    const forward = (this.turn == 'w' ? 1 : -1);
+    const forward = (color == 'w' ? 1 : -1);
     return this.isAttackedBySlideNJump(
       sq,
       color,