Skip to content

Commit

Permalink
The WhollyCow patch.
Browse files Browse the repository at this point in the history
  • Loading branch information
roncli committed Sep 8, 2020
1 parent 9ccb901 commit 51d5cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands.js
Expand Up @@ -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.");
}
Expand Down

0 comments on commit 51d5cc6

Please sign in to comment.