sq --> [x, y]
[vchess.git] / client / src / variants / Allmate2.js
index 9ba91ef..424bb09 100644 (file)
@@ -63,7 +63,7 @@ export class Allmate2Rules extends ChessRules {
               case V.KING:
                 // Do not allow castling to escape from check
                 oppMoves = super.getSlideNJumpMoves(
-                  sq,
+                  [x, y],
                   V.steps[V.ROOK].concat(V.steps[V.BISHOP]),
                   "oneStep"
                 );