From d49414beb468a592b0f7d9e2ad322e09e8544c50 Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Sun, 24 Jan 2021 15:23:09 +0100 Subject: [PATCH] Forgot arg of atLeastOneCapture() --- client/src/variants/Emergo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/variants/Emergo.js b/client/src/variants/Emergo.js index 81ad5d5f..aea814d5 100644 --- a/client/src/variants/Emergo.js +++ b/client/src/variants/Emergo.js @@ -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; -- 2.44.0