X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FOrda.js;h=afb736a7cd346008edff870a536c53c94f98dd06;hp=f1bfc911ef30ea6cf8d29c041199ee4282c1a84c;hb=6c7cbfedc6ecf2b49f6b1e27a174039e92a36365;hpb=5246b49d18b711fb26ee27919ab392be24b80fba diff --git a/client/src/variants/Orda.js b/client/src/variants/Orda.js index f1bfc911..afb736a7 100644 --- a/client/src/variants/Orda.js +++ b/client/src/variants/Orda.js @@ -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) ); }