X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FOrda.js;h=afb736a7cd346008edff870a536c53c94f98dd06;hb=6c7cbfedc6ecf2b49f6b1e27a174039e92a36365;hp=4d911f4045a0100fe8e5b1d3d288e0c28f7f71c8;hpb=c7550017d88ff6eb32e2c76a271a7f9edc4a3bf6;p=vchess.git diff --git a/client/src/variants/Orda.js b/client/src/variants/Orda.js index 4d911f40..afb736a7 100644 --- a/client/src/variants/Orda.js +++ b/client/src/variants/Orda.js @@ -212,8 +212,8 @@ export class OrdaRules extends ChessRules { getPotentialYurtMoves(sq) { return this.getSlideNJumpMoves( sq, - V.steps[V.BISHOP].concat([1, 0]), - "oneSTep" + V.steps[V.BISHOP].concat([ [1, 0] ]), + "oneStep" ); } @@ -234,13 +234,14 @@ export class OrdaRules extends ChessRules { this.isAttackedByKheshig(sq, color) ); } - // Horde: only pawn and queen (if promotions) in common: + // Horde: only pawn, king and queen (if promotions) in common: return ( super.isAttackedByPawn(sq, color) || this.isAttackedByLancer(sq, color) || this.isAttackedByKheshig(sq, color) || this.isAttackedByArcher(sq, color) || this.isAttackedByYurt(sq, color) || + super.isAttackedByKing(sq, color) || super.isAttackedByQueen(sq, color) ); } @@ -268,7 +269,7 @@ export class OrdaRules extends ChessRules { sq, color, V.YURT, - V.steps[V.BISHOP].concat([1, 0]), + V.steps[V.BISHOP].concat([ [1, 0] ]), "oneStep" ); }