From: Benjamin Auder Date: Sun, 24 Jan 2021 14:23:09 +0000 (+0100) Subject: Forgot arg of atLeastOneCapture() X-Git-Url: https://git.auder.net/?p=vchess.git;a=commitdiff_plain;h=d49414beb468a592b0f7d9e2ad322e09e8544c50;hp=4ab9394ba4b27737fe6706af2fbb8d7c6c9fe268 Forgot arg of atLeastOneCapture() --- 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;