X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FLosers.js;h=4bc6a611befbad99376cb08ffa6e17dbed088495;hb=a34caaced0796c9118a12c609463582d656e9daf;hp=1c087eff73a915a0d07ca294743573ee0558f77c;hpb=8423b682152b159b7c56b8ae5f27cb77a77043ee;p=vchess.git diff --git a/client/src/variants/Losers.js b/client/src/variants/Losers.js index 1c087eff..4bc6a611 100644 --- a/client/src/variants/Losers.js +++ b/client/src/variants/Losers.js @@ -38,7 +38,8 @@ export class LosersRules extends ChessRules { getAllValidMoves() { const moves = super.getAllValidMoves(); - if (moves.some(m => m.vanish.length == 2)) return V.KeepCaptures(moves); + if (moves.some(m => m.vanish.length == 2 && m.appear.length == 1)) + return V.KeepCaptures(moves); return moves; }