From 2ac5c764619a89498b7cc5099b30e9609cc22b9e Mon Sep 17 00:00:00 2001 From: Benjamin Auder <benjamin.auder@somewhere> Date: Sat, 4 Apr 2020 13:29:50 +0200 Subject: [PATCH] Fix Suction (no)promotions --- client/src/variants/Suction.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/client/src/variants/Suction.js b/client/src/variants/Suction.js index 4ddffbe4..c3277e9c 100644 --- a/client/src/variants/Suction.js +++ b/client/src/variants/Suction.js @@ -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; } -- 2.44.0