From d138795015520c6d6ce8e27fa3d0fe0e013aa234 Mon Sep 17 00:00:00 2001 From: lemming552 Date: Sun, 21 Oct 2012 17:44:10 -0600 Subject: [PATCH] Travelling spies do not show in spy report. --- lib/Lacuna/DB/Result/Spies.pm | 5 ++--- var/www/public/changes.txt | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Lacuna/DB/Result/Spies.pm b/lib/Lacuna/DB/Result/Spies.pm index 15d58ff7..ddb1ca72 100644 --- a/lib/Lacuna/DB/Result/Spies.pm +++ b/lib/Lacuna/DB/Result/Spies.pm @@ -2738,14 +2738,13 @@ sub spy_report { my $spies = Lacuna->db ->resultset('Lacuna::DB::Result::Spies') ->search( {empire_id => {'!=' => $self->empire_id}, + task => {'!=' => 'Travelling'}, on_body_id=>$self->on_body_id}); while (my $spook = $spies->next) { unless (exists $planets{$spook->from_body_id}) { $planets{$spook->from_body_id} = $spook->from_body->name; } - unless ($spook->task eq 'Travelling') { - push @peeps, [$spook->name, $planets{$spook->from_body_id}, $spook->task, $spook->level]; - } + push @peeps, [$spook->name, $planets{$spook->from_body_id}, $spook->task, $spook->level]; } unless (scalar @peeps > 1) { $peeps[0] = ["No", "Enemy", "Spies", "Found" ]; diff --git a/var/www/public/changes.txt b/var/www/public/changes.txt index 586214fa..3bbb87f1 100644 --- a/var/www/public/changes.txt +++ b/var/www/public/changes.txt @@ -2,7 +2,8 @@ - Fix: Spies need working infrastructure. - Fix: Tutorial doesn't restart if fissure blows up capitol. - Fix: Enforcement of spy limits. - - Mod: merc spy id assigned on acceptance. + - Mod: Merc spy id assigned on acceptance. + - Fix: Excavators and ships on chain duty are targets for spies. 3.0871: - Mod: Police Stations get an upgrade. -- 2.51.2