mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
fix: units not returning from attack and staying as reinforcements
This commit is contained in:
@@ -2957,7 +2957,7 @@ class Automation {
|
||||
}
|
||||
|
||||
$database->setMovementProc($data['moveid']);
|
||||
if(isset($chiefing_village) && $chiefing_village != 1){
|
||||
if(!isset($chiefing_village) || (isset($chiefing_village) && $chiefing_village != 1)){
|
||||
$database->addMovement(4,$DefenderWref,$AttackerWref,$data['ref'],$AttackArrivalTime,$endtime);
|
||||
|
||||
// send the bounty on type 6.
|
||||
@@ -2995,7 +2995,7 @@ class Automation {
|
||||
if($type == 3 or $type == 4){
|
||||
$database->addGeneralAttack($totalattackdead);
|
||||
}
|
||||
if(isset($village_destroyed) && $village_destroyed == 1){
|
||||
if(!isset($village_destroyed) || (isset($village_destroyed) && $village_destroyed == 1)){
|
||||
if($can_destroy==1){
|
||||
$this->DelVillage($data['to']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user