X-Git-Url: https://git.auder.net/variants/%24%7Bobj.vname%7D/style.css?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FSuction.js;h=aa28f596e394c1bfd8f8c726afd34f4a066a60fb;hb=0a9cef131612079e55714f56f1466b4e2bd749af;hp=2038e4f800155441c80a6b1834d75d1e6062245b;hpb=6f2f94374f1e73c375edf732d9425e575e81fff7;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,