From 5cd86a27662ec87e1fa60813a7852083bf81f0dd Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 25 Apr 2020 07:02:13 +0900 Subject: [PATCH] =?UTF-8?q?=EC=84=A0=EC=A0=84=ED=8F=AC=EA=B3=A0=20?= =?UTF-8?q?=EB=8C=80=EC=83=81=EC=9D=B4=20=EC=9D=B4=EC=83=81=ED=95=9C=20?= =?UTF-8?q?=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/sammo/GeneralAI.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hwe/sammo/GeneralAI.php b/hwe/sammo/GeneralAI.php index e8597db1..97dfb24d 100644 --- a/hwe/sammo/GeneralAI.php +++ b/hwe/sammo/GeneralAI.php @@ -1605,7 +1605,7 @@ class GeneralAI return null; } - $cmd = buildNationCommandClass('che_선전포고', $general, $this->env, $lastTurn, [ + $cmd = buildNationCommandClass('che_선전포고', $this->general, $this->env, $lastTurn, [ 'destNationID' => Util::choiceRandomUsingWeight($nations) ]); if(!$cmd->isRunnable()){ @@ -1626,7 +1626,7 @@ class GeneralAI //천도를 한턴 넣었다면 계속 넣는다. if($lastTurn->getCommand() === 'che_천도'){ - $cmd = buildNationCommandClass('che_천도', $general, $this->env, $lastTurn, $lastTurn->getArg()); + $cmd = buildNationCommandClass('che_천도', $this->general, $this->env, $lastTurn, $lastTurn->getArg()); if($cmd->isRunnable()){ $nationStor->setValue("last천도Trial_{$this->nation['nation']}", [$general->getVar('officer_level'), $general->getTurnTime()]); return $cmd; @@ -1740,7 +1740,7 @@ class GeneralAI $targetCityID = Util::choiceRandom($candidates); } - $cmd = buildNationCommandClass('che_천도', $general, $this->env, $lastTurn, [ + $cmd = buildNationCommandClass('che_천도', $this->general, $this->env, $lastTurn, [ 'destCityID'=>$targetCityID ]);