mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-30 15:17:13 +00:00
fix artefact of the fool
This commit is contained in:
@@ -157,7 +157,17 @@ $tocoor = $database->getCoor($enforce['vref']);
|
||||
$fastertroops = 1;
|
||||
}
|
||||
$time = round($generator->procDistanceTime($fromCor,$toCor,min($speeds),1)/$fastertroops);
|
||||
|
||||
$foolartefact = $database->getFoolArtefactInfo(2,$village->wid,$seesion->uid);
|
||||
if(count($foolartefact) > 0){
|
||||
foreach($foolartefact as $arte){
|
||||
if($arte['bad_effect'] == 1){
|
||||
$time *= $arte['effect2'];
|
||||
}else{
|
||||
$time /= $arte['effect2'];
|
||||
$time = round($time);
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<td colspan="10">
|
||||
|
||||
Reference in New Issue
Block a user