X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FTakenmake.js;h=d37edf6c658ab2de25e3d0fd9168079032988b6e;hp=9549c2a92fa3a13dd01a42bb1e77d1d8eac3fa24;hb=1006b211894bdc0624e2fd332ac78322bf8ca0ee;hpb=cfeaa4a1149ef71f12789c958f40c6cc7177bbd7 diff --git a/client/src/variants/Takenmake.js b/client/src/variants/Takenmake.js index 9549c2a9..d37edf6c 100644 --- a/client/src/variants/Takenmake.js +++ b/client/src/variants/Takenmake.js @@ -13,10 +13,9 @@ export class TakenmakeRules extends ChessRules { const L = this.lastMoveEnd.length; if (!asA && !!this.lastMoveEnd[L-1]) { asA = this.lastMoveEnd[L-1].p; - if (x != this.lastMoveEnd[L-1].x || y != this.lastMoveEnd[L-1].y) { + if (x != this.lastMoveEnd[L-1].x || y != this.lastMoveEnd[L-1].y) // A capture was played: wrong square return []; - } } let moves = []; const piece = this.getPiece(x, y);