Fix Emergo: no simple moves in entering stage
authorBenjamin Auder <benjamin.auder@somewhere>
Sun, 24 Jan 2021 14:18:31 +0000 (15:18 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Sun, 24 Jan 2021 14:18:31 +0000 (15:18 +0100)
client/src/variants/Emergo.js

index 98d9d71..81ad5d5 100644 (file)
@@ -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;