From baf4d3aa9820b04d678364aa2be73560804d24ff Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 26 Apr 2020 04:08:47 +0900 Subject: [PATCH] =?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, 6 insertions(+) diff --git a/hwe/sammo/GeneralAI.php b/hwe/sammo/GeneralAI.php index a66ccd95..13036a1d 100644 --- a/hwe/sammo/GeneralAI.php +++ b/hwe/sammo/GeneralAI.php @@ -3272,6 +3272,9 @@ class GeneralAI if(key_exists($chiefLevel, $this->chiefGenerals)){ continue; } + if($this->general->getVar('officer_level') == $chiefLevel){ + continue; + } $picked = false; @@ -3402,6 +3405,9 @@ class GeneralAI if($nation[$nationKey]){ continue; } + if($this->general->getVar('officer_level') === $chiefLevel){ + continue; + } if(!key_exists($chiefLevel, $this->chiefGenerals) && !key_exists($chiefLevel, $nextChiefs)){ $newChiefProb = 1;