Fix Suction (no)promotions
authorBenjamin Auder <benjamin.auder@somewhere>
Sat, 4 Apr 2020 11:29:50 +0000 (13:29 +0200)
committerBenjamin Auder <benjamin.auder@somewhere>
Sat, 4 Apr 2020 11:29:50 +0000 (13:29 +0200)
client/src/variants/Suction.js

index 4ddffbe..c3277e9 100644 (file)
@@ -1,6 +1,15 @@
 import { ChessRules, PiPo, Move } from "@/base_rules";
 
 export class SuctionRules extends ChessRules {
+  static get PawnSpecs() {
+    return Object.assign(
+      {},
+      ChessRules.PawnSpecs,
+      // No promotions:
+      { promotions: [V.PAWN] }
+    );
+  }
+
   static get HasFlags() {
     return false;
   }