now ally attacks work fine (except scouts, I save it for later when fix all scouts type)

This commit is contained in:
unknown
2012-04-10 01:00:07 +03:00
parent 25e6da2e13
commit dc5ecf3c7a
3 changed files with 15 additions and 13 deletions
+2 -5
View File
@@ -12,6 +12,7 @@ while($row = mysql_fetch_array($sql)){
$dataarray = explode(",",$row['data']);
$id = $row["id"];
$uid = $row["uid"];
$toWref = $row["toWref"];
$ally = $row["ally"];
$topic = $row["topic"];
$ntype = $row["ntype"];
@@ -38,11 +39,7 @@ if($ntype==4 || $ntype==5 || $ntype==6 || $ntype==7){
$outputList .= $nn;
$outputList .= $database->getUserField($dataarray[28],username,0);
if($ntype==0 or $ntype==1 or $ntype==2 or $ntype==3){
$getUserAlly = $database->getUserField($dataarray[0],alliance,0);
}else{
$getUserAlly = $database->getUserField($dataarray[30],alliance,0);
}
$getUserAlly = $database->getUserField($dataarray[0],alliance,0);
$getAllyName = $database->getAllianceName($getUserAlly);
if($getUserAlly==$session->alliance || !$getUserAlly){