From d958cc6847b96a73b73623130b20e44bac9f7cb7 Mon Sep 17 00:00:00 2001 From: Benjamin Auder <benjamin.auder@somewhere> Date: Sat, 14 Mar 2020 21:42:54 +0100 Subject: [PATCH] Fix forbidden captures and checks within first move for Eightpieces variant --- client/src/variants/Eightpieces.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client/src/variants/Eightpieces.js b/client/src/variants/Eightpieces.js index 465fbea9..1033a5ae 100644 --- a/client/src/variants/Eightpieces.js +++ b/client/src/variants/Eightpieces.js @@ -683,11 +683,7 @@ export const VariantRules = class EightpiecesRules extends ChessRules { this.movesCount >= 2 ? filteredMoves : filteredMoves.filter(m => { - return ( - m.vanish.length <= 1 || - m.appear.length != 1 || - basicFilter(m, oppCol) - ); + return (m.vanish.length <= 1 && basicFilter(m, oppCol)); }) ).concat(movesWithSentryPushes); } -- 2.44.0