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';