mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-28 22:27:15 +00:00
fix hero training time
This commit is contained in:
@@ -132,13 +132,6 @@
|
||||
header("Location: build.php?id=".$id."");
|
||||
}
|
||||
|
||||
if($hero_info['trainingtime'] <= time()) {
|
||||
if($hero_info['trainingtime'] != 0) {
|
||||
if($hero_info['dead'] == 0) {
|
||||
mysql_query("UPDATE " . TB_PREFIX . "hero SET trainingtime = '0' WHERE uid = " . $session->uid . "");
|
||||
mysql_query("UPDATE " . TB_PREFIX . "units SET hero = 1 WHERE vref = ".$village->wid."");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
include ("37_train.tpl");
|
||||
?>
|
||||
Reference in New Issue
Block a user