From f5087e1ccceb791070c36b6c93851eb17bc7004e Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 13 Jun 2012 15:28:12 +0300 Subject: [PATCH] fix hero revive again --- GameEngine/Automation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']."'"); }