From 51d5cc6fbc298bd49830790962557420e91e19ca Mon Sep 17 00:00:00 2001 From: "Ronald M. Clifford" Date: Mon, 7 Sep 2020 22:04:14 -0700 Subject: [PATCH] The WhollyCow patch. --- src/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.js b/src/commands.js index 7cd521e1..8e93961e 100644 --- a/src/commands.js +++ b/src/commands.js @@ -2776,7 +2776,7 @@ class Commands { throw err; } - if (!opponentHomeMaps.CTF || !opponentHomeMaps["2v2"] || opponentPilotCount >= 3 && !opponentHomeMaps["3v3"] || opponentPilotCount >= 4 || !opponentHomeMaps["4v4+"] || opponentHomeMaps.CTF.length !== 5 || opponentHomeMaps["2v2"].length !== 5 || pilotCount >= 3 && opponentHomeMaps["3v3"].length !== 5 || pilotCount >= 4 && opponentHomeMaps["4v4+"].length !== 5) { + if (!opponentHomeMaps.CTF || !opponentHomeMaps["2v2"] || opponentPilotCount >= 3 && !opponentHomeMaps["3v3"] || opponentPilotCount >= 4 && !opponentHomeMaps["4v4+"] || opponentHomeMaps.CTF.length !== 5 || opponentHomeMaps["2v2"].length !== 5 || opponentPilotCount >= 3 && opponentHomeMaps["3v3"].length !== 5 || opponentPilotCount >= 4 && opponentHomeMaps["4v4+"].length !== 5) { await Discord.queue(`Sorry, ${member}, but your opponents must have 5 home maps set for each game type before you can challenge them.`, channel); throw new Warning("Opponent does not have 5 home maps set for each game type."); }