From f7ccc994cc66724ef802dd17db473e2c335ca2cc Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 24 Jan 2021 10:09:52 -0500 Subject: [PATCH] Fix --- commands/games-mp/domineering.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/games-mp/domineering.js b/commands/games-mp/domineering.js index 5414b595..0389ead0 100644 --- a/commands/games-mp/domineering.js +++ b/commands/games-mp/domineering.js @@ -119,7 +119,8 @@ 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 (userTurn && !board[i + 1]) continue; + if (!userTurn && !board[i][j + 1]) continue; if (board[userTurn ? i + 1 : i][userTurn ? j : j + 1]) continue; possibleMoves.push(`${i},${j}`); }