Fix CC queen attacks
authorBenjamin Auder <benjamin.auder@somewhere>
Tue, 31 Mar 2020 01:17:43 +0000 (03:17 +0200)
committerBenjamin Auder <benjamin.auder@somewhere>
Tue, 31 Mar 2020 01:17:43 +0000 (03:17 +0200)
client/src/variants/Colorbound.js

index c3d5991..55d89cb 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")
     );
   }