Fix Shinobi
authorBenjamin Auder <benjamin.auder@somewhere>
Thu, 18 Mar 2021 22:11:31 +0000 (23:11 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Thu, 18 Mar 2021 22:11:31 +0000 (23:11 +0100)
client/src/variants/Shinobi.js

index 8f7f11f..babf6e1 100644 (file)
@@ -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);