From 50f577470eea78122067dfbb541e64894a1a29a2 Mon Sep 17 00:00:00 2001 From: Elijah Perrault Date: Sun, 10 Apr 2011 12:18:26 -0600 Subject: [PATCH] Werewolf: Fixed a typo that broke the gun on occasion. --- doc/CHANGELOG | 1 + modules/Werewolf.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/CHANGELOG b/doc/CHANGELOG index a859e4c..f69514b 100644 --- a/doc/CHANGELOG +++ b/doc/CHANGELOG @@ -3,6 +3,7 @@ Auto IRC Bot 3.0: Change Log 3.0 Indev =============================================================================== + * Werewolf: Fixed a typo that broke the gun on occasion. * Fixed a minor retract bug in Werewolf. * Fixed two major bugs in Werewolf that messed up game play. * Fixed several bugs and changed around JOIN/START/BEGIN in Werewolf. diff --git a/modules/Werewolf.pm b/modules/Werewolf.pm index 718b2ff..f4ee982 100644 --- a/modules/Werewolf.pm +++ b/modules/Werewolf.pm @@ -490,7 +490,7 @@ sub cmd_wolf { my $real = $NICKS{lc $argv[1]}; # Massive randomizing here. 5 = 3-kill, 1-miss, 1-suicide - my $myr = int rand 7; + my $myr = int rand 6; given ($myr) { when (/^[1-3]$/) { # It's a hit. privmsg($src->{svr}, $src->{chan}, "\2$src->{nick}\2 shot \2$real\2 with a silver bullet!");