fix matchmaker, warlock, and piper causing night to end early if they !quit after acting

alpha wolf and turncoat also aren't removed from variables when quitting, but chk_nightdone checks if those roles are still in pl for some reason
This commit is contained in:
jacob1 2015-10-09 12:44:26 -04:00
parent 6dd8f88bf6
commit 3845d4e0b3

View File

@ -2990,7 +2990,7 @@ def del_player(cli, nick, forced_death = False, devoice = True, end_game = True,
# remove players from night variables
# the dicts are handled above, these are the lists of who has acted which is used to determine whether night should end
# if these aren't cleared properly night may end prematurely
for x in (var.SEEN, var.PASSED, var.HUNTERS, var.HEXED):
for x in (var.SEEN, var.PASSED, var.HUNTERS, var.HEXED, var.MATCHMAKERS, var.CURSED, var.CHARMERS):
x.discard(nick)
if var.PHASE == "day" and not forced_death and ret: # didn't die from lynching
var.VOTES.pop(nick, None) # Delete other people's votes on the player