From de566f839bcc9110d95e6717992b8ac336e16d08 Mon Sep 17 00:00:00 2001 From: skizzerz Date: Tue, 26 Sep 2017 15:32:49 -0500 Subject: [PATCH] Don't attempt to transition phases while in the middle of a chain death --- src/wolfgame.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wolfgame.py b/src/wolfgame.py index 0f184dc..bfd372a 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -2697,10 +2697,10 @@ def del_player(player, *, forced_death=False, devoice=True, end_game=True, death var.WOUNDED.discard(player.nick) var.CONSECRATING.discard(player.nick) # note: PHASE = "day" and GAMEPHASE = "night" during transition_day; - # we only want to induce a lynch if it's actually day - if var.GAMEPHASE == "day": + # we only want to induce a lynch if it's actually day and we aren't in a chained death + if var.GAMEPHASE == "day" and ismain: chk_decision(channels.Main.client) - elif var.PHASE == "night" and ret: + elif var.PHASE == "night" and ret and ismain: chk_nightdone(channels.Main.client) return ret