From d64e08f3c43addd35fc9d4e4034e3d048cdeb386 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 16 May 2020 16:24:45 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B6=80=EB=8C=80=EC=9E=A5=ED=9B=84=EB=B0=A9?= =?UTF-8?q?=EB=B0=9C=EB=A0=B9=EB=B2=84=EA=B7=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/GeneralAI.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hwe/sammo/GeneralAI.php b/hwe/sammo/GeneralAI.php index 60021fd5..4028bc1e 100644 --- a/hwe/sammo/GeneralAI.php +++ b/hwe/sammo/GeneralAI.php @@ -516,6 +516,9 @@ class GeneralAI if(!key_exists($userGeneral->getCityID(), $this->frontCities)){ continue; } + if(!key_exists($userGeneral->getCityID(), $this->nationCities)){ + continue; + } $city = $this->supplyCities[$userGeneral->getCityID()]; $troopLeaderID = $userGeneral->getVar('troop'); if(!$troopLeaderID || !key_exists($troopLeaderID, $this->troopLeaders)){