Fix Omega castling and pieces randomization, fix a bug when undoing partial multi...
[vchess.git] / client / src / variants / Baroque.js
index 74617cf..1e02cdf 100644 (file)
@@ -425,8 +425,9 @@ export class BaroqueRules extends ChessRules {
               if (
                 (sameRow && move.end.y == y) ||
                 (sameColumn && move.end.x == x)
-              )
+              ) {
                 return true;
+              }
             }
           }
         }
@@ -454,8 +455,9 @@ export class BaroqueRules extends ChessRules {
               if (
                 this.getPiece(i, j) == V.KNIGHT &&
                 !this.isImmobilized([i, j])
-              )
+              ) {
                 return true;
+              }
               continue outerLoop;
             }
             // [else] Our color,