X-Git-Url: https://git.auder.net/?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fvariants%2FWildebeest.js;h=1634f4942712581545bcd9cbddd9ab695f720175;hb=e3ef199cdac142f1ca14fa6ceb259eb380f63929;hp=27b131d5c42337cea21915f8966fe4df54074ad2;hpb=094e11f228623dae26d1c93813db4deaebca293d;p=vchess.git diff --git a/client/src/variants/Wildebeest.js b/client/src/variants/Wildebeest.js index 27b131d5..1634f494 100644 --- a/client/src/variants/Wildebeest.js +++ b/client/src/variants/Wildebeest.js @@ -117,8 +117,9 @@ export const VariantRules = class WildebeestRules extends ChessRules { const shiftX = color == "w" ? -1 : 1; const startRanks = color == "w" ? [sizeX - 2, sizeX - 3] : [1, 2]; const lastRank = color == "w" ? 0 : sizeX - 1; - const finalPieces = - x + shiftX == lastRank ? [V.ROOK, V.KNIGHT, V.BISHOP, V.QUEEN] : [V.PAWN]; + const finalPieces = x + shiftX == lastRank + ? [V.WILDEBEEST, V.QUEEN] + : [V.PAWN]; if (this.board[x + shiftX][y] == V.EMPTY) { // One square forward