fix: second row of catapults destroys incorrect target

#393
This commit is contained in:
Martin Ambrus
2017-12-02 11:09:14 +01:00
parent 9474a60313
commit 537a14e4e3
+1 -2
View File
@@ -2354,8 +2354,6 @@ class Automation {
/**
* SECOND CATAPULTS ROW
*/
// reload resource levels, since they've changed now
$bdo = $database->getResourceLevel($basearray, false);
// we're manually targetting 2nd row of catapults
if (!$catapults2TargetRandom)
@@ -2372,6 +2370,7 @@ class Automation {
// 2nd row of catapults pre-selected target calculations, if needed
if (!$catapults2TargetRandom && !$catapults2WillNotShoot && $bdo['f'.$i.'t'] == $catapultTarget2 && $bdo['f'.$i] > 0 && $catapultTarget2 != 31 && $catapultTarget2 != 32 && $catapultTarget2 != 33)
{
$j++;
$_catapultsTarget2Levels[$j]=$bdo['f'.$i];
$__catapultsTarget2AltTargets[$j]=$i;
}