Fix typo
authorBenjamin Auder <benjamin.auder@somewhere>
Thu, 7 Jan 2021 23:23:56 +0000 (00:23 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Thu, 7 Jan 2021 23:23:56 +0000 (00:23 +0100)
client/src/variants/Otage.js

index 8497098..b6f38b3 100644 (file)
@@ -381,7 +381,7 @@ export class OtageRules extends ChessRules {
         break;
       case V.KING:
         baseMoves = this.getSlideNJumpMoves(
         break;
       case V.KING:
         baseMoves = this.getSlideNJumpMoves(
-          sq,
+          [x, y],
           V.steps[V.ROOK].concat(V.steps[V.BISHOP]),
           "oneStep"
         );
           V.steps[V.ROOK].concat(V.steps[V.BISHOP]),
           "oneStep"
         );