From 8261195cb0ddf2de7be9a4b94127c2ca3012d359 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 4 Oct 2012 03:38:37 +0200 Subject: [PATCH] update --- GameEngine/Automation.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/GameEngine/Automation.php b/GameEngine/Automation.php index 7a307283..eb0cc8c0 100644 --- a/GameEngine/Automation.php +++ b/GameEngine/Automation.php @@ -883,9 +883,6 @@ class Automation { $query = mysql_query('SELECT * FROM `' . TB_PREFIX . 'ww_attacks` WHERE `attack_time` <= ' . time()); while ($row = mysql_fetch_assoc($query)) { - // fix for destroyed wws - $query2 = mysql_query('UPDATE `' . TB_PREFIX . 'fdata` SET `f99t` = 40 WHERE `vref` = ' . $row['vid']); - // delete the attack $query3 = mysql_query('DELETE FROM `' . TB_PREFIX . 'ww_attacks` WHERE `vid` = ' . $row['vid'] . ' AND `attack_time` = ' . $row['attack_time']); } @@ -1902,7 +1899,7 @@ class Automation { { $info_cat = "".$catp_pic.", ".$this->procResType($tbgid)." destroyed."; $database->setVillageLevel($data['to'],"f".$tbid."",'0'); - if($tbid>=19) { $database->setVillageLevel($data['to'],"f".$tbid."t",'0'); } + if($tbid>=19 && $tbid!=99) { $database->setVillageLevel($data['to'],"f".$tbid."t",'0'); } $buildarray = $GLOBALS["bid".$tbgid]; if ($tbgid==10 || $tbgid==38) { $tsql=mysql_query("select `maxstore`,`maxcrop` from ".TB_PREFIX."vdata where wref=".$data['to'].""); @@ -2033,7 +2030,7 @@ class Automation { { $info_cat = "".$catp_pic.", ".$this->procResType($tbgid)." destroyed."; $database->setVillageLevel($data['to'],"f".$tbid."",'0'); - if($tbid>=19) { $database->setVillageLevel($data['to'],"f".$tbid."t",'0'); } + if($tbid>=19 && $tbid!=99) { $database->setVillageLevel($data['to'],"f".$tbid."t",'0'); } $buildarray = $GLOBALS["bid".$tbgid]; if ($tbgid==10 || $tbgid==38) { $tsql=mysql_query("select `maxstore`,`maxcrop` from ".TB_PREFIX."vdata where wref=".$data['to'].""); @@ -2164,7 +2161,7 @@ class Automation { $info_cat .= "
Information \"Catapult\" ".$this->procResType($tbgid)." destroyed."; $database->setVillageLevel($data['to'],"f".$tbid."",'0'); - if($tbid>=19) { $database->setVillageLevel($data['to'],"f".$tbid."t",'0'); } + if($tbid>=19 && $tbid!=99) { $database->setVillageLevel($data['to'],"f".$tbid."t",'0'); } $buildarray = $GLOBALS["bid".$tbgid]; if ($tbgid==10 || $tbgid==38) { $tsql=mysql_query("select `maxstore`,`maxcrop` from ".TB_PREFIX."vdata where wref=".$data['to']."");