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/doc/html/vendor/img/pieces/cn.svg?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 },