Fix Progressive2. Fixing attempt on Doublemove1
[vchess.git] / client / src / variants / Colorbound.js
index c3d5991..7e0a622 100644 (file)
@@ -315,7 +315,7 @@ export class ColorboundRules extends ChessRules {
     return (
       this.isAttackedBySlideNJump(sq, color, V.C_QUEEN, V.steps[V.BISHOP]) ||
       this.isAttackedBySlideNJump(
-        sq, color, V.C_ROOK, V.steps[V.KNIGHT], "oneStep")
+        sq, color, V.C_QUEEN, V.steps[V.KNIGHT], "oneStep")
     );
   }
 
@@ -331,4 +331,8 @@ export class ColorboundRules extends ChessRules {
       }
     );
   }
+
+  static get SEARCH_DEPTH() {
+    return 2;
+  }
 };