From 131cad32e36c0fa245ee9c185691d9f5149555ab Mon Sep 17 00:00:00 2001 From: Benjamin Auder <benjamin.auder@somewhere> Date: Thu, 18 Mar 2021 23:11:31 +0100 Subject: [PATCH] Fix Shinobi --- client/src/variants/Shinobi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/variants/Shinobi.js b/client/src/variants/Shinobi.js index 8f7f11f0..babf6e19 100644 --- a/client/src/variants/Shinobi.js +++ b/client/src/variants/Shinobi.js @@ -174,7 +174,7 @@ export class ShinobiRules extends ChessRules { if ([V.ROOK, V.KNIGHT, V.BISHOP, V.QUEEN].includes(piece)) return super.getPotentialMovesFrom(sq); switch (piece) { - case V.KING: return super.getPotentialKingMoves(sq); + case V.KING: return this.getPotentialKingMoves(sq); case V.CAPTAIN: return this.getPotentialCaptainMoves(sq); case V.NINJA: return this.getPotentialNinjaMoves(sq); case V.SAMURAI: return this.getPotentialSamuraiMoves(sq); -- 2.44.0