From 338551b44c7f2c6cac511ac1269df4ebd9211be9 Mon Sep 17 00:00:00 2001 From: Elijah Perrault Date: Wed, 20 Apr 2011 22:18:56 -0600 Subject: [PATCH] Werewolf: Fixed a bug in harlot staying home. --- doc/CHANGELOG | 1 + modules/Werewolf.pm | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/CHANGELOG b/doc/CHANGELOG index 45540c0..e6f4f64 100644 --- a/doc/CHANGELOG +++ b/doc/CHANGELOG @@ -3,6 +3,7 @@ Auto IRC Bot 3.0: Change Log 3.0 Indev =============================================================================== + * Werewolf: Fixed a bug in harlot staying home. * Werewolf: Various bug fixes. * Werewolf 1.06: Fixed an annoyance and added traitor transformation. * Commands now work with prefixes even in PM. diff --git a/modules/Werewolf.pm b/modules/Werewolf.pm index df5855f..3f9cfb8 100644 --- a/modules/Werewolf.pm +++ b/modules/Werewolf.pm @@ -1207,10 +1207,10 @@ sub _init_day { } # Finally, check if the harlot was targeted and wasn't home. - if (_getrole($victim, 2) eq 'harlot' and $VISIT) { + if (_getrole($victim, 2) eq 'harlot' and $VISIT) { if ($VISIT != 1) { privmsg($gsvr, $gchan, 'The wolves attempted to attack the harlot last night, but (s)he wasn\'t home...'); $victim = 0; - } + } } # Set phase to day. $PHASE = 'd';