Skip to content
This repository has been archived by the owner on Aug 9, 2020. It is now read-only.

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ms6rb authored Jan 25, 2020
1 parent cd129ce commit 309aec0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ async function Next(author, akiMsg, session, signature, answerId, step, enter) {
oldCollects[author.id].wait = 3
}

if (step >= 72) return Loser(author, akiMsg);

if (nextInfo.progress >= 90 && enter !== true) {

const win = await aki.win(region, session, signature, step + 1);
Expand All @@ -154,7 +156,7 @@ async function Next(author, akiMsg, session, signature, answerId, step, enter) {

if (lastIds.includes(guess.id)) guess = win.answers[x];

if (guess == undefined || step >=75) {
if (guess == undefined) {
return Loser(author, akiMsg);
} else {
oldCollects[author.id].lastid.push(guess.id);
Expand Down

0 comments on commit 309aec0

Please sign in to comment.