Fix typo and CC promotions
authorBenjamin Auder <benjamin.auder@somewhere>
Tue, 31 Mar 2020 01:12:34 +0000 (03:12 +0200)
committerBenjamin Auder <benjamin.auder@somewhere>
Tue, 31 Mar 2020 01:12:34 +0000 (03:12 +0200)
client/src/variants/Colorbound.js

index b96f73a..c3d5991 100644 (file)
@@ -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])
     );
   }