From 4f2c08918a1bba5825678bcc548c9377e499b249 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 8 Feb 2020 14:03:43 +0900 Subject: [PATCH] =?UTF-8?q?=ED=95=AB=ED=94=BD=EC=8A=A4=20=ED=9A=A8?= =?UTF-8?q?=EC=9C=A8=20=ED=96=A5=EC=83=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_npc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hwe/func_npc.php b/hwe/func_npc.php index c52f3f2a..ffaf0f60 100644 --- a/hwe/func_npc.php +++ b/hwe/func_npc.php @@ -277,7 +277,7 @@ function processAI($no, &$reduce_turn) { } - $query = "select no,turn0,npcid,name,nation,nations,city,level,npcmsg,personal,leader,intel,power,horse,weap,book,item,special,special2,gold,rice,crew,crewtype,train,atmos,troop,npc,affinity,injury,picture,imgsvr,killturn,makelimit,dex0,dex10,dex20,dex30,dex40 from general where no='$no'"; + $query = "select no,turn0,npcid,name,nation,nations,city,level,npcmsg,personal,leader,intel,power,horse,weap,book,item,special,special2,gold,rice,crew,crewtype,train,atmos,troop,npc,affinity,mode,injury,picture,imgsvr,killturn,makelimit,dex0,dex10,dex20,dex30,dex40 from general where no='$no'"; $result = MYDB_query($query, $connect) or Error("processAI01 ".MYDB_error($connect),""); $general = MYDB_fetch_array($result); @@ -455,7 +455,7 @@ function processAI($no, &$reduce_turn) { $tech = getTechCost($nation['tech']); $resrc = $tech * 700;//XXX: 왜 700이지? - if($allowedAction->changeWarCondition){ + if($allowedAction->changeWarCondition && $general['mode'] != 2){ $query = "update general set mode=2 where no='{$general['no']}'"; MYDB_query($query, $connect) or Error("processAI05 ".MYDB_error($connect),""); }