From 169046051856f49e7366e04f98629d35fd64a209 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Mon, 27 Aug 2018 17:44:01 +0000 Subject: [PATCH] More fixes --- commands/games/quiz-duel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/games/quiz-duel.js b/commands/games/quiz-duel.js index d4709db1..fae1f792 100644 --- a/commands/games/quiz-duel.js +++ b/commands/games/quiz-duel.js @@ -73,11 +73,11 @@ module.exports = class QuizDuelCommand extends Command { continue; } const result = msgs.first(); - if (userPoints >= maxPts) winner = msg.author; - else if (oppoPoints >= maxPts) winner = opponent; const userWin = result.author.id === msg.author.id; if (userWin) ++userPoints; else ++oppoPoints; + if (userPoints >= maxPts) winner = msg.author; + else if (oppoPoints >= maxPts) winner = opponent; const score = oneLine` ${userWin ? '**' : ''}${userPoints}${userWin ? '**' : ''}- ${userWin ? '' : '**'}${oppoPoints}${userWin ? '' : '**'}