mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-02 00:27:12 +00:00
Update Automation.php
This commit is contained in:
@@ -1051,6 +1051,7 @@ class Automation {
|
|||||||
$fromF = $database->getVillage($data['from']);
|
$fromF = $database->getVillage($data['from']);
|
||||||
$conqureby=0;
|
$conqureby=0;
|
||||||
$NatarCapital=($toF['owner']==3 && $toF['capital']==1)? true:false;
|
$NatarCapital=($toF['owner']==3 && $toF['capital']==1)? true:false;
|
||||||
|
if(!isset($to['name']) || $to['name']=='') $to['name']="??";
|
||||||
|
|
||||||
$DefenderUnit = array();
|
$DefenderUnit = array();
|
||||||
$DefenderUnit = $database->getUnit($data['to']);
|
$DefenderUnit = $database->getUnit($data['to']);
|
||||||
@@ -1849,13 +1850,12 @@ class Automation {
|
|||||||
if ($isoasis == 0) {
|
if ($isoasis == 0) {
|
||||||
$pop=$this->recountPop($data['to']);
|
$pop=$this->recountPop($data['to']);
|
||||||
} else $pop=10; //oasis cannot be destroy bt cata/ram
|
} else $pop=10; //oasis cannot be destroy bt cata/ram
|
||||||
if($pop<=0) {
|
if($pop<=0) {
|
||||||
if($can_destroy==1) {
|
if($can_destroy==1) {
|
||||||
$info_cat = ",".$catp_pic.", Village already destroyed.";
|
$info_cat = "".$catp_pic.", Village already destroyed.";
|
||||||
$village_destroyed = 1;
|
} else {
|
||||||
} else {
|
$info_cat = "".$catp_pic.", Village can't be destroyed.";
|
||||||
$info_cat = ",".$catp_pic.", Village can't be destroyed.";
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user