From: Benjamin Auder Date: Tue, 16 Feb 2021 22:15:30 +0000 (+0100) Subject: Fix Pandemonium (pawn drop) X-Git-Url: https://git.auder.net/variants/current/doc/scripts/img/index.css?a=commitdiff_plain;h=822d71d68d98ab35989cc41683c93ce9a0714ffe;p=vchess.git Fix Pandemonium (pawn drop) --- diff --git a/client/src/variants/Pandemonium.js b/client/src/variants/Pandemonium.js index 287aa3bf..3997e2b0 100644 --- a/client/src/variants/Pandemonium.js +++ b/client/src/variants/Pandemonium.js @@ -223,6 +223,7 @@ export class PandemoniumRules extends ChessRules { getReserveMoves([x, y]) { const color = this.turn; + const oppCol = V.GetOppCol(color); const p = V.RESERVE_PIECES[y]; if (this.reserve[color][p] == 0) return []; const bounds = (p == V.PAWN ? [1, V.size.x - 1] : [0, V.size.x]);