Skip to content

Commit

Permalink
More robust rejecting seizing of stars in starter zones.
Browse files Browse the repository at this point in the history
  • Loading branch information
lemming552 committed Apr 3, 2013
1 parent 406e6b2 commit 496900d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Lacuna/DB/Result/Propositions/SeizeStar.pm
Expand Up @@ -9,7 +9,10 @@ before pass => sub {
my ($self) = @_;
my $station = $self->station;
my $star = Lacuna->db->resultset('Lacuna::DB::Result::Map::Star')->find($self->scratch->{star_id});
if (!$star->station_id) {
if ($star->in_starter) {
$self->pass_extra_message('This star is in a starter zone and cannot be seized.');
}
elsif (!$star->station_id) {
my $influence_remaining = $station->influence_remaining;
if ( $influence_remaining >= 1 ) {
my $law = Lacuna->db->resultset('Lacuna::DB::Result::Laws')->new({
Expand Down

0 comments on commit 496900d

Please sign in to comment.