mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-08 05:36:10 +00:00
General fixes
+You can no longer build WW if your and your alliance building plans aren't active yet +You can no longer remove the WW from the village if you remove it from the building queue +Spies from every tribe will now consume crop correctly, when returning from a scouting attacks +Spies from every tribe will now be displayed correctly, in the "Troops" tab of dorf3.php, when returning from a scouting attack +Building levels will now not be downgraded by 1 level, when conquering a Natars' village +Natars' villages with an artifact inside, will now be deleted if the artifact is conquered (even if the pop isn't 0)
This commit is contained in:
@@ -2042,7 +2042,7 @@ class Automation {
|
||||
$poparray = $database->getVSumField([$AttackerID, $DefenderID] ,"pop");
|
||||
$pop1 = $poparray[0]['Total'];
|
||||
$pop2 = $poparray[1]['Total'];
|
||||
if($pop1 > $pop2){
|
||||
if($pop1 > $pop2 && $targettribe != 5){
|
||||
$buildlevel = $database->getResourceLevel($data['to']);
|
||||
for ($i = 1; $i <= 39; $i++){
|
||||
if($buildlevel['f'.$i]!=0){
|
||||
@@ -2171,7 +2171,7 @@ class Automation {
|
||||
$info_hero = $hero_pic.",Your hero is carrying home the artifact <b>".$artifact['name']."</b> and".$xp;
|
||||
|
||||
// if the defender pop is 0 with no artefact, then destroy the village
|
||||
if($database->getVillageField($data['to'], "pop") == 0){
|
||||
if($database->getVillageField($data['to'], "pop") == 0 || $targettribe == 5){
|
||||
$can_destroy = $village_destroyed = 1;
|
||||
$info_hero .= " The village has been destroyed.";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user