From 0d0e9ecdad4e4a92879fbb3cfc73c91410bddc1e Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Tue, 26 Jan 2021 16:18:57 -0700 Subject: [PATCH] Reset all parts of the team, not just the hand. --- server/src/objects/Team.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/src/objects/Team.ts b/server/src/objects/Team.ts index 668c820..da5f1f3 100644 --- a/server/src/objects/Team.ts +++ b/server/src/objects/Team.ts @@ -36,11 +36,13 @@ export class Team { }; - public resetHand(): void { + public reset(): void { /** - * Removes all the cards from the guesser's hand + * Resets all the per-game data related to this team */ this._hand = []; + this._questions = []; + this._answers = new Array(8).fill(``); }