X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FMakruk.js;h=2eeeaeaf8be2fd356fbac89c6056b7a4bd351619;hb=1c15969ecec2a86ee7dffe570e53dfd61fd06b22;hp=2da534f1e22dbc40c07396e37325e1f3027aecf2;hpb=cd49e617866590dbc68530ad961b109cdbe1ce55;p=vchess.git diff --git a/client/src/variants/Makruk.js b/client/src/variants/Makruk.js index 2da534f1..2eeeaeaf 100644 --- a/client/src/variants/Makruk.js +++ b/client/src/variants/Makruk.js @@ -15,10 +15,7 @@ export class MakrukRules extends ChessRules { return Object.assign( {}, ChessRules.PawnSpecs, - { - twoSquares: false, - promotions: [V.QUEEN] - } + { promotions: [V.QUEEN] } ); } @@ -104,7 +101,7 @@ export class MakrukRules extends ChessRules { } isAttackedByBishop(sq, color) { - const forward = (this.turn == 'w' ? 1 : -1); + const forward = (color == 'w' ? 1 : -1); return this.isAttackedBySlideNJump( sq, color,