Fixed a bug

Corrected a little forgetfulness
This commit is contained in:
iopietro
2018-04-09 23:35:45 +02:00
parent 486a59dc03
commit 01e1df7493
+4 -4
View File
@@ -5033,7 +5033,7 @@ class Automation {
$maxcount = $units;
$maxtypeatt = $i;
$maxtype = $maxtypeatt + (($tribe - 1) * 10);
$att = $attack['moveid'];
$att = $attack;
}
$totalunits += $units;
}
@@ -5042,7 +5042,7 @@ class Automation {
$maxtype = "hero";
$maxtypeatt = 11;
$heroinfo = $database->getHero($starv['owner'])[0];
$att = $attack['moveid'];
$att = $attack;
}
}
}
@@ -5107,9 +5107,9 @@ class Automation {
{
if($killunits < $totalunits)
{
$database->modifyAttack($att, $maxtypeatt, min($killunits, $maxcount));
$database->modifyAttack($att['id'], $maxtypeatt, min($killunits, $maxcount));
}
else $database->setMovementProc($att);
else $database->setMovementProc($att['moveid']);
}
elseif(isset($maxtype))
{