diff --git a/GameEngine/Automation.php b/GameEngine/Automation.php index 27f8114a..86130347 100644 --- a/GameEngine/Automation.php +++ b/GameEngine/Automation.php @@ -3303,7 +3303,7 @@ $crannyimg = "getUnit($hdata['wref']); - if($villunits['hero'] == 0 && $hero_info['trainingtime'] < time() && $hero_info['inrevive'] == 1){ + if($villunits['hero'] == 0 && $hdata['trainingtime'] < time() && $hdata['inrevive'] == 1){ mysql_query("UPDATE " . TB_PREFIX . "units SET hero = 1 WHERE vref = ".$hdata['wref'].""); mysql_query("UPDATE ".TB_PREFIX."hero SET `dead` = '0', `inrevive` = '0', `health` = '100' WHERE `uid` = '".$hdata['uid']."'"); }