From: Benjamin Auder Date: Thu, 18 Mar 2021 22:11:31 +0000 (+0100) Subject: Fix Shinobi X-Git-Url: https://git.auder.net/app_dev.php/js/index.js?a=commitdiff_plain;h=131cad32e36c0fa245ee9c185691d9f5149555ab;p=vchess.git Fix Shinobi --- 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);