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

index b6f38b3..b3fabec 100644 (file)
@@ -386,7 +386,7 @@ export class OtageRules extends ChessRules {
           "oneStep"
         );
         if (!noCastle && this.castleFlags[this.turn].some(v => v < V.size.y))
-          baseMoves = baseMoves.concat(this.getCastleMoves(sq));
+          baseMoves = baseMoves.concat(this.getCastleMoves([x, y]));
         break;
     }
     // When a pawn in an union reaches final rank with a non-standard