From: Benjamin Auder Date: Thu, 4 Mar 2021 21:20:16 +0000 (+0100) Subject: Fix Synchrone2 pass move X-Git-Url: https://git.auder.net/css/%7B%7B%20path%28%27mixstore_store_usecase_upsert%27%2C%20%7B%20pkgid:%20pkg.id%20%7D%29%20%7D%7D?a=commitdiff_plain;h=080b1eb5c05ad62140dee1ff8824843aef434272;p=vchess.git Fix Synchrone2 pass move --- diff --git a/client/src/variants/Synchrone2.js b/client/src/variants/Synchrone2.js index 396a0c68..dc038ecb 100644 --- a/client/src/variants/Synchrone2.js +++ b/client/src/variants/Synchrone2.js @@ -102,7 +102,7 @@ export class Synchrone2Rules extends Synchrone1Rules { ); }); const passTarget = - (x != this.kingPos[c][0] || y != this.kingPos[c][0]) ? c : oppCol; + (x != this.kingPos[c][0] || y != this.kingPos[c][1]) ? c : oppCol; movesNow.push( new Move({ start: { x: x, y: y },