From 04a4d2db3466a3e86472d876a72928aec658b32d Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 24 Jan 2021 10:07:33 -0500 Subject: [PATCH] Fix --- commands/games-mp/domineering.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/games-mp/domineering.js b/commands/games-mp/domineering.js index a0228063..5414b595 100644 --- a/commands/games-mp/domineering.js +++ b/commands/games-mp/domineering.js @@ -119,6 +119,7 @@ module.exports = class DomineeringCommand extends Command { for (let i = 0; i < board.length; i++) { for (let j = 0; j < board[i].length; j++) { if (board[i][j]) continue; + if (!board[i + 1] || !board[i][j + 1]) continue; if (board[userTurn ? i + 1 : i][userTurn ? j : j + 1]) continue; possibleMoves.push(`${i},${j}`); }