X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FSuction.js;h=aa28f596e394c1bfd8f8c726afd34f4a066a60fb;hb=58bf4670c6bf01d94fe1f798cd5d63493d15e196;hp=2038e4f800155441c80a6b1834d75d1e6062245b;hpb=57d9b2c4f08948bd5a5fc4a01a0b62d4c80523e2;p=vchess.git diff --git a/client/src/variants/Suction.js b/client/src/variants/Suction.js index 2038e4f8..aa28f596 100644 --- a/client/src/variants/Suction.js +++ b/client/src/variants/Suction.js @@ -96,7 +96,7 @@ export class SuctionRules extends ChessRules { Math.abs(epSquare.y - y) == 1 ) { let enpassantMove = this.getBasicMove([x, y], [epSquare.x, epSquare.y]); - const oppCol = V.GetOppCol(color); + const oppCol = V.GetOppCol(this.turn); enpassantMove.vanish.push({ x: x, y: epSquare.y,