Skip to content

Commit

Permalink
Minor bug fixes
Browse files Browse the repository at this point in the history
WW villages cannot be destroyed. Thank @iopietro for your help.
  • Loading branch information
Vladyslav committed Aug 27, 2018
1 parent 2254825 commit e3c2a28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GameEngine/Automation.php
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@ private function sendunitsComplete() {
$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;
Expand Down

0 comments on commit e3c2a28

Please sign in to comment.