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'));