X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FCrazyhouse.js;h=db9cb5778b6c868cf81044fa9c70a55e9ccc09fb;hp=9d5834fbd58c2af75782963460a82c86659528c3;hb=1e8a838649e16509c80c9933d99d78856e11b5c2;hpb=be3fb7b5de79dc2295d41b593faf18c6ed895e0d diff --git a/client/src/variants/Crazyhouse.js b/client/src/variants/Crazyhouse.js index 9d5834fb..db9cb577 100644 --- a/client/src/variants/Crazyhouse.js +++ b/client/src/variants/Crazyhouse.js @@ -166,10 +166,9 @@ export class CrazyhouseRules extends ChessRules { } getPotentialMovesFrom([x, y]) { - if (x >= V.size.x) { + if (x >= V.size.x) // Reserves, outside of board: x == sizeX(+1) return this.getReserveMoves([x, y]); - } // Standard moves return super.getPotentialMovesFrom([x, y]); }