From 8b3f287a49112c585a571b25c41ef8f5f2801f20 Mon Sep 17 00:00:00 2001 From: Elijah Perrault Date: Mon, 11 Apr 2011 15:54:02 -0600 Subject: [PATCH] Check if we should end the nighttime everytime someone dies. --- modules/Werewolf.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/Werewolf.pm b/modules/Werewolf.pm index 9474a14..ac8aaed 100644 --- a/modules/Werewolf.pm +++ b/modules/Werewolf.pm @@ -1299,6 +1299,9 @@ sub _player_del { if (!keys %PLAYERS) { _gameover('n') } } + # Check if nighttime should end, given we are night. + if ($PHASE) { if ($PHASE eq 'n') { _chknight() } } + return 1; }