X-Git-Url: https://git.auder.net/js/rpsls.js?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FColorbound.js;h=c3d59911e8114b4d6b9838d139e2c7f8fd4633cf;hb=db952d8e5986ecafad6f805bc64cb1f5a61dac2a;hp=b96f73a3814fd4c0761c56441187dfd93474e8c1;hpb=46e8cda8c801fe0e0d5a1ef540da945e05cdf89c;p=vchess.git diff --git a/client/src/variants/Colorbound.js b/client/src/variants/Colorbound.js index b96f73a3..c3d59911 100644 --- a/client/src/variants/Colorbound.js +++ b/client/src/variants/Colorbound.js @@ -7,7 +7,11 @@ export class ColorboundRules extends ChessRules { return Object.assign( {}, ChessRules.PawnSpecs, - { promotions: V.PIECES } + { + promotions: + ChessRules.PawnSpecs.promotions.concat( + [V.C_ROOK, V.C_KNIGHT, V.C_BISHOP, V.C_QUEEN]) + } ); } @@ -101,7 +105,7 @@ export class ColorboundRules extends ChessRules { static get PIECES() { return ( - ChessRules.PIECES.concat([V.C_ROOK, V.C_KINGHT, V.C_BISHOP, V.C_QUEEN]) + ChessRules.PIECES.concat([V.C_ROOK, V.C_KNIGHT, V.C_BISHOP, V.C_QUEEN]) ); }