mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-03 08:57:17 +00:00
Fixed a bug
Corrected a little forgetfulness
This commit is contained in:
@@ -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))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user