check if the wolves are agreeing before ending the night.

This commit is contained in:
Jimmy Cao 2011-08-09 16:21:27 -05:00
parent 51fe49d9e9
commit 6e87fed3cd

View File

@ -1201,6 +1201,11 @@ def chk_nightdone(cli):
len(var.GUARDED.keys()) == len(var.ROLES["guardian angel"]) and # guardians have guarded
len(var.ROLES["werecrow"]+var.ROLES["wolf"]) == len(var.ACTED_WOLVES) and
var.PHASE == "night"):
# check if wolves are actually agreeing
if len(set(var.KILLS.values())) > 1:
return
if var.TIMERS[0]:
var.TIMERS[0].cancel() # cancel timer
var.TIMERS[0] = None