From: Benjamin Auder Date: Thu, 18 Feb 2021 12:36:19 +0000 (+0100) Subject: Fix Pandemonium drop X-Git-Url: https://git.auder.net/doc/current/%7B%7B%20asset%28%27mixstore/css/user/common.css%27%29%20%7D%7D?a=commitdiff_plain;h=e85bddc13ff00ef1fc13f33795ad7a2293c2f08d;p=vchess.git Fix Pandemonium drop --- diff --git a/client/src/variants/Pandemonium.js b/client/src/variants/Pandemonium.js index d585d4f7..496e2870 100644 --- a/client/src/variants/Pandemonium.js +++ b/client/src/variants/Pandemonium.js @@ -329,7 +329,7 @@ export class PandemoniumRules extends ChessRules { return []; } // Normal move (after initial setup) - if (x >= V.size.x) return this.getReserveMoves(x, y); + if (x >= V.size.x) return this.getReserveMoves([x, y]); const p = this.getPiece(x, y); const sq = [x, y]; let moves = [];