X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FCircular.js;h=a89712d6be89355be33b1707e4db8b0f1b3d2cbe;hp=df8d95456230da5d57da09ab9722f76945f59371;hb=9842aca264cf81695a253820ef1efd8e677e1a20;hpb=96aa6f038885b1c0bb04b71c59cb767553051fc8 diff --git a/client/src/variants/Circular.js b/client/src/variants/Circular.js index df8d9545..a89712d6 100644 --- a/client/src/variants/Circular.js +++ b/client/src/variants/Circular.js @@ -165,8 +165,7 @@ export const VariantRules = class CircularRules extends ChessRules { filterValid(moves) { const filteredMoves = super.filterValid(moves); // If at least one full move made, everything is allowed: - if (this.movesCount >= 2) - return filteredMoves; + if (this.movesCount >= 2) return filteredMoves; // Else, forbid check: const oppCol = V.GetOppCol(this.turn); return filteredMoves.filter(m => {