mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-06 04:44:21 +00:00
forgot somthing in technology.php
This commit is contained in:
@@ -455,6 +455,10 @@ private function trainUnit($unit,$amt,$great=false) {
|
||||
$amt = 0;
|
||||
}
|
||||
}else{
|
||||
$trainlist = $this->getTrainingList(8);
|
||||
foreach($trainlist as $train) {
|
||||
$train_amt += $train['amt'];
|
||||
}
|
||||
$max = $bid36[$village->resarray['f'.$id]]['attri'] - ($village->unitarray['u99'] + $train_amt);
|
||||
if($max <= $amt) {
|
||||
$amt = 0;
|
||||
|
||||
Reference in New Issue
Block a user