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