From: Benjamin Auder Date: Sun, 24 Jan 2021 14:18:31 +0000 (+0100) Subject: Fix Emergo: no simple moves in entering stage X-Git-Url: https://git.auder.net/%7B%7B%20asset%28%27mixstore/css/static/pieces/%24%7BgetWhatsApp%28link%29%7D?a=commitdiff_plain;h=4ab9394ba4b27737fe6706af2fbb8d7c6c9fe268;p=vchess.git Fix Emergo: no simple moves in entering stage --- diff --git a/client/src/variants/Emergo.js b/client/src/variants/Emergo.js index 98d9d71a..81ad5d5f 100644 --- a/client/src/variants/Emergo.js +++ b/client/src/variants/Emergo.js @@ -399,6 +399,7 @@ export class EmergoRules extends ChessRules { return []; } const color = this.turn; + if (!!this.reserve[color] && !this.atLeastOneCapture()) return []; const L0 = this.captures.length; const captures = this.captures[L0 - 1]; const L = captures.length;