Fix bug in battle when rejecting

This commit is contained in:
Daniel Odendahl Jr
2018-10-10 22:43:21 +00:00
parent 73b5aa7b9b
commit d085e16c3a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ module.exports = class BattleCommand extends Command {
await msg.say(`${opponent}, do you accept this challenge?`);
const verification = await verify(msg.channel, opponent);
if (!verification) {
this.fighting.delete(msg.channel.id);
this.battles.delete(msg.channel.id);
return msg.say('Looks like they declined...');
}
}