From: Benjamin Auder Date: Wed, 10 Feb 2021 22:51:15 +0000 (+0100) Subject: Fix too fast copy-paste from Paco-Sako X-Git-Url: https://git.auder.net/variants/current/doc/css/scripts/%7B%7B%20pkg.url%20%7D%7D?a=commitdiff_plain;h=1f9d1d4a094bb89005ba1a995dfe8d4dd5705c40;p=vchess.git Fix too fast copy-paste from Paco-Sako --- diff --git a/client/src/variants/Convert.js b/client/src/variants/Convert.js index 74ffead5..1180e375 100644 --- a/client/src/variants/Convert.js +++ b/client/src/variants/Convert.js @@ -263,7 +263,7 @@ export class ConvertRules extends ChessRules { else break; } for (let i = mvArray.length - 1; i >= 0; i--) this.undo(mvArray[i]); - if (!mv.end.released) return (mvArray.length > 1 ? mvArray : mvArray[0]); + if (!mv.end.converted) return (mvArray.length > 1 ? mvArray : mvArray[0]); } return null; //never reached }