From fb09517a4261a6ed0e2e66ee1a153a9ac60b0898 Mon Sep 17 00:00:00 2001 From: jcao219 Date: Tue, 9 Aug 2011 16:21:27 -0500 Subject: [PATCH] check if the wolves are agreeing before ending the night. --- wolfgame.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wolfgame.py b/wolfgame.py index 64839ca..17e8e10 100644 --- a/wolfgame.py +++ b/wolfgame.py @@ -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