X-Git-Url: https://git.auder.net/game/%22%20%20%20data.gameInfo.gameId%20%20%20%22?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FAvalanche.js;h=17e21380dc73cb07493c724e895c858fd52dc048;hb=cfeaa4a1149ef71f12789c958f40c6cc7177bbd7;hp=edeb5648d8279d6c6017eb489a9199b027e5220b;hpb=4258b58c6aff86ce69ebfbcd40d704836df27ac9;p=vchess.git diff --git a/client/src/variants/Avalanche.js b/client/src/variants/Avalanche.js index edeb5648..17e21380 100644 --- a/client/src/variants/Avalanche.js +++ b/client/src/variants/Avalanche.js @@ -25,6 +25,7 @@ export class AvalancheRules extends ChessRules { } canIplay(side, [x, y]) { + if (side != this.turn) return false; if (this.subTurn == 0) return (x >= V.size.x); const c = this.getColor(x, y); return (