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; $maxcount = $units;
$maxtypeatt = $i; $maxtypeatt = $i;
$maxtype = $maxtypeatt + (($tribe - 1) * 10); $maxtype = $maxtypeatt + (($tribe - 1) * 10);
$att = $attack['moveid']; $att = $attack;
} }
$totalunits += $units; $totalunits += $units;
} }
@@ -5042,7 +5042,7 @@ class Automation {
$maxtype = "hero"; $maxtype = "hero";
$maxtypeatt = 11; $maxtypeatt = 11;
$heroinfo = $database->getHero($starv['owner'])[0]; $heroinfo = $database->getHero($starv['owner'])[0];
$att = $attack['moveid']; $att = $attack;
} }
} }
} }
@@ -5107,9 +5107,9 @@ class Automation {
{ {
if($killunits < $totalunits) 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)) elseif(isset($maxtype))
{ {