From 8a9ed886b3e551e9179fce924349b6552ba574e7 Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Sat, 11 Apr 2020 21:42:48 +0200
Subject: [PATCH] sq --> [x, y]

---
 client/src/variants/Allmate1.js | 2 +-
 client/src/variants/Allmate2.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/client/src/variants/Allmate1.js b/client/src/variants/Allmate1.js
index d07cf847..f3c0b2ec 100644
--- a/client/src/variants/Allmate1.js
+++ b/client/src/variants/Allmate1.js
@@ -62,7 +62,7 @@ export class Allmate1Rules 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"
                 );
diff --git a/client/src/variants/Allmate2.js b/client/src/variants/Allmate2.js
index 9ba91ef0..424bb09e 100644
--- a/client/src/variants/Allmate2.js
+++ b/client/src/variants/Allmate2.js
@@ -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"
                 );
-- 
2.44.0