comparison sheep.pl @ 249:c30080146c05

fixed the sheep.pl for ignore user without ally
author "Rex Tsai <chihchun@kalug.linux.org.tw>"
date Mon, 17 Nov 2008 00:25:56 +0800
parents 64549ddddf4a
children 15c288dd7dc5
comparison
equal deleted inserted replaced
244:fd6c3660cd38 249:c30080146c05
57 unless($c->status eq 'i') { 57 unless($c->status eq 'i') {
58 # 依照影響力區分 58 # 依照影響力區分
59 unless ($sheep->allyId == '0') { 59 unless ($sheep->allyId == '0') {
60 unless (!defined($sheep->allyId) || $sheep->allyId == 0) { 60 unless (!defined($sheep->allyId) || $sheep->allyId == 0) {
61 my $ally = Ikariam::Ally->retrieve($sheep->allyId); 61 my $ally = Ikariam::Ally->retrieve($sheep->allyId);
62 next if(!defined($ally));
62 next if($ally->score > $myAlly->score); 63 next if($ally->score > $myAlly->score);
63 } 64 }
64 } 65 }
65 } 66 }
66 67