Fix wonky message ordering if a lynch is forced

This commit is contained in:
skizzerz 2016-01-11 19:14:42 -06:00
parent 30699c69a8
commit 281beda634

View File

@ -3163,6 +3163,9 @@ def del_player(cli, nick, forced_death=False, devoice=True, end_game=True, death
var.ASLEEP.discard(nick)
var.CONSECRATING.discard(nick)
var.SICK.discard(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":
chk_decision(cli)
elif var.PHASE == "night" and ret:
chk_nightdone(cli)
@ -3825,6 +3828,8 @@ def begin_day(cli):
event = Event("begin_day", {})
event.dispatch(cli, var)
# induce a lynch if we need to (due to lots of pacifism/impatience totems or whatever)
chk_decision(cli)
@handle_error
def night_warn(cli, gameid):