This commit is contained in:
Dragon Fire
2021-03-13 13:16:01 -05:00
parent 8c753feea0
commit b940d240a2
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -104,8 +104,10 @@ module.exports = class ApplesToApplesCommand extends Command {
await msg.say('Hmm... No one wins. Dealing back cards...');
for (const pick of cards) {
for (const card of pick.cards) {
/* eslint-disable max-depth */
if (!game.players.has(pick.id)) continue;
game.players.get(pick.id).hand.add(card);
/* eslint-enable max-depth */
}
}
game.czar.strikes++;
@@ -104,8 +104,10 @@ module.exports = class CardsAgainstHumanityCommand extends Command {
await msg.say('Hmm... No one wins. Dealing back cards...');
for (const pick of cards) {
for (const card of pick.cards) {
/* eslint-disable max-depth */
if (!game.players.has(pick.id)) continue;
game.players.get(pick.id).hand.add(card);
/* eslint-enable max-depth */
}
}
game.czar.strikes++;