mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-25 04:27:15 +00:00
now ally attacks work fine (except scouts, I save it for later when fix all scouts type)
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user