From: Benjamin Auder Date: Sat, 14 Mar 2020 20:42:54 +0000 (+0100) Subject: Fix forbidden captures and checks within first move for Eightpieces variant X-Git-Url: https://git.auder.net/%7B%7B%20asset%28%27mixstore/css/user/doc/pieces/cr.svg?a=commitdiff_plain;h=d958cc6847b96a73b73623130b20e44bac9f7cb7;p=vchess.git Fix forbidden captures and checks within first move for Eightpieces variant --- 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); }