fix hero problem with nothome

This commit is contained in:
unknown
2012-06-12 15:20:37 +03:00
parent 1412af8f2c
commit a1ea8fc8d2
4 changed files with 7 additions and 17 deletions
-4
View File
@@ -332,10 +332,6 @@ class Units {
$checkoexist = $database->checkOasisExist($data['to_vid']);
if($checkexist or $checkoexist){
$database->addMovement(3,$village->wid,$data['to_vid'],$reference,time(),($time+time()));
if($data['u11'] > 0){
$heroid = $database->getHero($session->uid);
mysql_query("UPDATE " . TB_PREFIX . "hero SET nothome = 1 WHERE heroid = ".$heroid."");
}
}
if($form->returnErrors() > 0) {