diff warfare.pl @ 261:2488d31240b7

next to CITY tag.
author "Rex Tsai <chihchun@kalug.linux.org.tw>"
date Wed, 19 Nov 2008 12:24:14 +0800
parents a5bd0050dd12
children 83e3ce37779d
line wrap: on
line diff
--- a/warfare.pl	Wed Nov 19 12:23:30 2008 +0800
+++ b/warfare.pl	Wed Nov 19 12:24:14 2008 +0800
@@ -115,7 +115,7 @@
             next CITY if($_->{to} == $city->cityId);
         }
         # we attack one city maximum 4 times a day.
-        next if($c >= 4);
+        next CITY if($c >= 4);
 
         my $capture = $city->citylevel * ($city->citylevel - 1) * $sheep->trader_score_secondary / 10000;
         next if($capture < 1500);