Minor bug fixes

WW villages cannot be destroyed. Thank @iopietro for your help.
This commit is contained in:
Vladyslav
2018-08-28 01:42:35 +03:00
parent 22548258f0
commit e3c2a28d71
+1 -1
View File
@@ -1283,7 +1283,7 @@ class Automation {
$info_cat = $info_chief = $info_ram = $info_hero = ",";
//check to see if can destroy village
if (count($varray) > 1 && !$database->villageHasArtefact($DefenderWref)) {
if (count($varray) > 1 && !$database->villageHasArtefact($DefenderWref) && !$to['natar']) {
$can_destroy = 1;
}
else $can_destroy = 0;