From: Benjamin Auder Date: Sat, 4 Apr 2020 11:29:50 +0000 (+0200) Subject: Fix Suction (no)promotions X-Git-Url: https://git.auder.net/game/current/%7B%7B%20asset%28%27mixstore/doc/html/index.html?a=commitdiff_plain;h=2ac5c764619a89498b7cc5099b30e9609cc22b9e;p=vchess.git Fix Suction (no)promotions --- 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; }