Werewolf: Fixed a bug that occasionally caused a person to get wolf twice in the same game.
This commit is contained in:
1 parent
50f577470e
commit
94db7280ff
2 files changed
+3
-1
No files matched your search
+1
-1
@@ -217,7 +217,7 @@ sub cmd_wolf {
|
||||
# Set wolves.
|
||||
while ($cwolves > 0) {
|
||||
my $rpi = $plyrs[int rand scalar @plyrs];
|
||||
if ($PLAYERS{$rpi} !~ m/^(s|g|h|d|t)$/xsm) {
|
||||
if ($PLAYERS{$rpi} !~ m/^(w|s|g|h|d|t)$/xsm) {
|
||||
$PLAYERS{$rpi} = 'w';
|
||||
$cwolves--;
|
||||
$STATIC[0] .= ", \2$NICKS{$rpi}\2";
|
||||
|
||||
Reference in new issue
Block a user