From dd778d5c3af5401bc131d616c88bf2dea5e93ead Mon Sep 17 00:00:00 2001 From: hide_d Date: Mon, 27 Aug 2018 00:18:50 +0900 Subject: [PATCH] =?UTF-8?q?=EC=88=98=EB=B9=84=EC=8B=9C=20=EA=B5=AD?= =?UTF-8?q?=EA=B0=80=20=EC=84=B1=ED=96=A5=EC=9D=B4=20=EA=B3=B5=EA=B2=A9?= =?UTF-8?q?=EA=B5=AD=EC=9C=BC=EB=A1=9C=20=EC=A7=80=EC=A0=95=EB=90=98?= =?UTF-8?q?=EB=8A=94=20=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/process_war.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hwe/process_war.php b/hwe/process_war.php index 0b396ec5..fe7ebc2e 100644 --- a/hwe/process_war.php +++ b/hwe/process_war.php @@ -35,7 +35,7 @@ function processWar(array $rawAttacker, array $rawDefenderCity){ $attacker = new WarUnitGeneral($rawAttacker, $rawAttackerCity, $rawAttackerNation, true, $year, $month); - $city = new WarUnitCity($rawDefenderCity, $rawAttackerNation, $year, $month, $cityRate); + $city = new WarUnitCity($rawDefenderCity, $rawDefenderNation, $year, $month, $cityRate); $defenderList = $db->query('SELECT no,name,nation,turntime,personal,special2,crew,crewtype,atmos,train,intel,intel2,book,power,power2,weap,injury,leader,leader2,horse,item,explevel,experience,dedication,level,gold,rice,dex0,dex10,dex20,dex30,dex40,warnum,killnum,deathnum,killcrew,deathcrew,recwar FROM general WHERE nation=%i AND city=%i AND nation!=0 and crew > 0 and rice>(crew/100) and ((train>=60 and atmos>=60 and mode=1) or (train>=80 and atmos>=80 and mode=2))', $city->getVar('nation'), $city->getVar('city'));