From f9a7347b30cea44b3b23ebdc80093ee305a7c045 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 24 Jan 2021 10:11:30 -0500 Subject: [PATCH] Fix --- commands/games-mp/domineering.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/games-mp/domineering.js b/commands/games-mp/domineering.js index 0389ead0..82b60f13 100644 --- a/commands/games-mp/domineering.js +++ b/commands/games-mp/domineering.js @@ -66,8 +66,8 @@ module.exports = class DomineeringCommand extends Command { if (pick.toLowerCase() === 'end') return true; const coordPicked = pick.match(turnRegex); if (!coordPicked) return false; - const x = Number.parseInt(coordPicked[2], 10); - const y = Number.parseInt(coordPicked[3], 10); + const x = Number.parseInt(coordPicked[1], 10); + const y = Number.parseInt(coordPicked[2], 10); if (x > size || y > size || x < 1 || y < 1) return false; if (!possibleMoves.includes(`${x - 1},${y - 1}`)) return false; return true;