From 82ce96adf83a63ee8b38cb6d711097ce379ee320 Mon Sep 17 00:00:00 2001 From: doy Date: Fri, 24 Apr 2009 23:53:53 -0500 Subject: don't allow players to be added if there is currently a challenger --- lib/Bot/Games/Game/Ghost.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Bot/Games/Game/Ghost.pm b/lib/Bot/Games/Game/Ghost.pm index 480def0..740ecd2 100644 --- a/lib/Bot/Games/Game/Ghost.pm +++ b/lib/Bot/Games/Game/Ghost.pm @@ -52,7 +52,7 @@ augment turn => sub { my $self = shift; my ($player, $state) = @_; - if (!grep { $player eq $_ } $self->players) { + if (!$self->has_challenger && !grep { $player eq $_ } $self->players) { if ($self->add_player($player)) { $self->current_player($player); } -- cgit v1.2.3-54-g00ecf