X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FSuction.js;h=c3277e9c34ee78b1a7c676f7b9b83caa10bb7625;hb=2ac5c764619a89498b7cc5099b30e9609cc22b9e;hp=4ddffbe45b1ca75b4f5d1bdc4e1229c1504024c7;hpb=cfceecbafc550838f9ec425d3695d0b0d208920e;p=vchess.git 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; }