From 822d71d68d98ab35989cc41683c93ce9a0714ffe Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Tue, 16 Feb 2021 23:15:30 +0100
Subject: [PATCH] Fix Pandemonium (pawn drop)

---
 client/src/variants/Pandemonium.js | 1 +
 1 file changed, 1 insertion(+)

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]);
-- 
2.44.0