X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FCrazyhouse.js;fp=client%2Fsrc%2Fvariants%2FCrazyhouse.js;h=64ce48b3a606933a5f4b3e92c3f8d53f40891a02;hb=cbe9537881e68f50c43f48d3699c4b248690fb4d;hp=db9cb5778b6c868cf81044fa9c70a55e9ccc09fb;hpb=1328e7dd5a73fd4a4eee85d5b86aea73b9a74f9f;p=vchess.git diff --git a/client/src/variants/Crazyhouse.js b/client/src/variants/Crazyhouse.js index db9cb577..64ce48b3 100644 --- a/client/src/variants/Crazyhouse.js +++ b/client/src/variants/Crazyhouse.js @@ -188,7 +188,7 @@ export class CrazyhouseRules extends ChessRules { if (!super.atLeastOneMove()) { // Search one reserve move for (let i = 0; i < V.RESERVE_PIECES.length; i++) { - let moves = this.filterValid( + const moves = this.filterValid( this.getReserveMoves([V.size.x + (this.turn == "w" ? 0 : 1), i]) ); if (moves.length > 0) return true;