From e93417c530abccd2423dd708dc2bd33ff6ac4d38 Mon Sep 17 00:00:00 2001 From: Mark Lemming Date: Fri, 31 Jan 2014 15:28:02 -0700 Subject: [PATCH] Fixed cache check --- bin/saben/send_attack.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/saben/send_attack.pl b/bin/saben/send_attack.pl index f909c9de..814c2b1f 100644 --- a/bin/saben/send_attack.pl +++ b/bin/saben/send_attack.pl @@ -73,7 +73,7 @@ while (my $attacking_colony = $colonies->next) { $cache->set('saben_attack',$attacking_colony->id.'-'.$target_colony->empire_id, 1, 60 * 60 * 48); } $target_colony = $targets->next; - if (defined $target_colony && !$cache->get('saben'.$attacking_colony->id.'-'.$target_colony->empire_id)) { + if (defined $target_colony && !$cache->get('saben_attack'.$attacking_colony->id.'-'.$target_colony->empire_id)) { out('Attacking '.$target_colony->name.' with sweepers and bleeders and snarks'); push @attacks, $ai->start_attack($attacking_colony, $target_colony, [qw(sweeper bleeder snark1 snark2 snark3)]); $cache->set('saben_attack',$attacking_colony->id.'-'.$target_colony->empire_id, 1, 60 * 60 * 72); -- 2.51.2