From fa19c17941b31d60b853f0dde2629050f240ddd5 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 10 Apr 2021 15:39:03 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20AI=20=EB=B0=9C=EB=A0=B9=20=ED=84=B4=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hwe/sammo/GeneralAI.php b/hwe/sammo/GeneralAI.php index 6a87653c..b4c725b8 100644 --- a/hwe/sammo/GeneralAI.php +++ b/hwe/sammo/GeneralAI.php @@ -709,7 +709,7 @@ class GeneralAI $cmd = buildNationCommandClass('che_발령', $this->general, $this->env, $lastTurn, [ 'destGeneralID'=>$pickedGeneral->getID(), - 'destCityID'=>Util::choiceRandom($recruitableCityList)['city'] + 'destCityID'=>Util::choiceRandomUsingWeight($recruitableCityList) ]); if(!$cmd->hasFullConditionMet()){ @@ -1009,7 +1009,7 @@ class GeneralAI $cmd = buildNationCommandClass('che_발령', $this->general, $this->env, $lastTurn, [ 'destGeneralID'=>$pickedGeneral->getID(), - 'destCityID'=>Util::choiceRandom($recruitableCityList)['city'] + 'destCityID'=>Util::choiceRandomUsingWeight($recruitableCityList) ]); if(!$cmd->hasFullConditionMet()){