# HG changeset patch # User "Rex Tsai " # Date 1227625607 -28800 # Node ID 53827cc442b6bcf3d4d368fbd9fd0631a052c0b3 # Parent aaffc50e3318ce470a53b6668d8f3adbd2e67b8d we attack same city 6 times, if the owner is inactive. diff -r aaffc50e3318 -r 53827cc442b6 warfare.pl --- a/warfare.pl Tue Nov 25 20:15:26 2008 +0800 +++ b/warfare.pl Tue Nov 25 23:06:47 2008 +0800 @@ -116,7 +116,11 @@ next CITY if($_->{to} == $city->cityId); } # we attack one city maximum 4 times a day. - next CITY if($c >= 4); + if ($city->status eq 'i') { + next CITY if($c >= 6); + } else { + next CITY if($c >= 4); + } my $capture = $city->citylevel * ($city->citylevel - 1) * $sheep->trader_score_secondary / 10000; next if($capture < 1500);