Forgot arg of atLeastOneCapture()
authorBenjamin Auder <benjamin.auder@somewhere>
Sun, 24 Jan 2021 14:23:09 +0000 (15:23 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Sun, 24 Jan 2021 14:23:09 +0000 (15:23 +0100)
client/src/variants/Emergo.js

index 81ad5d5..aea814d 100644 (file)
@@ -399,7 +399,7 @@ export class EmergoRules extends ChessRules {
       return [];
     }
     const color = this.turn;
-    if (!!this.reserve[color] && !this.atLeastOneCapture()) return [];
+    if (!!this.reserve[color] && !this.atLeastOneCapture(color)) return [];
     const L0 = this.captures.length;
     const captures = this.captures[L0 - 1];
     const L = captures.length;