From 1349f848f772a0fc41efd3648bf065b7172315e7 Mon Sep 17 00:00:00 2001 From: Benjamin Auder <benjamin.auder@somewhere> Date: Mon, 4 May 2020 00:39:04 +0200 Subject: [PATCH] Fix Swap variant --- client/src/variants/Swap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/variants/Swap.js b/client/src/variants/Swap.js index 071b21d4..4d97ae93 100644 --- a/client/src/variants/Swap.js +++ b/client/src/variants/Swap.js @@ -34,7 +34,7 @@ export class SwapRules extends ChessRules { } getPPpath(m) { - if (m.vanish.length == 1) return super.getPPpath(m); + if (m.appear.length == 1) return super.getPPpath(m); // Swap promotion: return m.appear[1].c + m.appear[1].p; } -- 2.44.0