From 77cc7b1d16c1f1f0889224dedd2659871a8aecad Mon Sep 17 00:00:00 2001 From: Martin Ambrus Date: Tue, 26 Dec 2017 20:29:40 +0100 Subject: [PATCH] fix: rally point not destroyed correctly when taking over a village #427 --- GameEngine/Automation.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/GameEngine/Automation.php b/GameEngine/Automation.php index 512063c2..b5fe9c1b 100755 --- a/GameEngine/Automation.php +++ b/GameEngine/Automation.php @@ -2603,6 +2603,12 @@ class Automation { $leveldown = $buildlevel['f'.$i]-1; $newLevels_fieldNames[] = "f".$i; $newLevels_fieldValues[] = $leveldown; + + // building at level 0, remove it completely + if (!$leveldown > 0) { + $newLevels_fieldNames[] = "f".$i."t"; + $newLevels_fieldValues[] = 0; + } }else{ $newLevels_fieldNames[] = "f".$i; $newLevels_fieldValues[] = 0;