From: Benjamin Auder Date: Tue, 31 Mar 2020 01:12:34 +0000 (+0200) Subject: Fix typo and CC promotions X-Git-Url: https://git.auder.net/js/css/%7B%7B%20path%28%27fos_user_profile_show%27%29%20%7D%7D?a=commitdiff_plain;h=db952d8e5986ecafad6f805bc64cb1f5a61dac2a;p=vchess.git Fix typo and CC promotions --- 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]) ); }