Skip to content

Commit

Permalink
Ditto's Who Am I: fix solo crash
Browse files Browse the repository at this point in the history
  • Loading branch information
sirDonovan committed Aug 2, 2024
1 parent 96258f5 commit 6846f8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/games/dittos-who-am-i.ts
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,9 @@ const commands: GameCommandDefinitions<DittosWhoAmI> = {
formattedQuestions.push(trimmed.toLowerCase());

const result = this.checkGuess(trimmed, player);
// solo variant ends in checkGuess()
if (this.ended) return true;

if (typeof result === 'string') {
this.say(result);
return false;
Expand Down

0 comments on commit 6846f8e

Please sign in to comment.