From 1f9d1d4a094bb89005ba1a995dfe8d4dd5705c40 Mon Sep 17 00:00:00 2001 From: Benjamin Auder <benjamin.auder@somewhere> Date: Wed, 10 Feb 2021 23:51:15 +0100 Subject: [PATCH] Fix too fast copy-paste from Paco-Sako --- client/src/variants/Convert.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.44.0