From 685a904889c2c4c91e756dc94c0a83fbbe4e051f Mon Sep 17 00:00:00 2001 From: "Vgr E. Barry" Date: Thu, 21 Jun 2018 15:50:18 -0400 Subject: [PATCH] Make sure bot doesn't break if someone quits during join phase --- src/roles/clone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/roles/clone.py b/src/roles/clone.py index 0667281..710fa8f 100644 --- a/src/roles/clone.py +++ b/src/roles/clone.py @@ -184,7 +184,7 @@ def first_death_occured(evt, var, player, mainrole, allroles, death_triggers): global CLONE_ENABLED if CLONE_ENABLED: return - if (CLONED or get_all_players(("clone",))) and var.PHASE in var.GAME_PHASES and not var.FIRST_NIGHT: + if var.PHASE in var.GAME_PHASES and (CLONED or get_all_players(("clone",))) and not var.FIRST_NIGHT: CLONE_ENABLED = True @event_listener("update_stats")