From 08e43bed71eab9b906762c1f4354956f4c509a4f Mon Sep 17 00:00:00 2001 From: Hide_D Date: Wed, 13 Jul 2022 22:07:25 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=84=9C=EB=B2=84=20=EC=98=A4=ED=94=88?= =?UTF-8?q?=20=EC=B2=AB=20=ED=84=B4=EC=97=90=EB=8A=94=20=ED=95=B4=EC=82=B0?= =?UTF-8?q?=20=EB=B6=88=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/Command/General/che_해산.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hwe/sammo/Command/General/che_해산.php b/hwe/sammo/Command/General/che_해산.php index c3dd00f2..a1f84c2c 100644 --- a/hwe/sammo/Command/General/che_해산.php +++ b/hwe/sammo/Command/General/che_해산.php @@ -65,8 +65,17 @@ class che_해산 extends Command\GeneralCommand{ $env = $this->env; $general = $this->generalObj; + $logger = $general->getLogger(); $date = $general->getTurnTime($general::TURNTIME_HM); + $initYearMonth = Util::joinYearMonth($env['init_year'], $env['init_month']); + $yearMonth = Util::joinYearMonth($env['year'], $env['month']); + if($yearMonth <= $initYearMonth){ + $logger->pushGeneralActionLog("다음 턴부터 해산할 수 있습니다. <1>$date"); + $this->alternative = new che_인재탐색($general, $this->env, null); + return false; + } + $generalName = $general->getName(); $josaYi = JosaUtil::pick($generalName, '이'); @@ -87,7 +96,7 @@ class che_해산 extends Command\GeneralCommand{ refreshNationStaticInfo(); - $logger = $general->getLogger(); + $logger->pushGeneralActionLog("세력을 해산했습니다. <1>$date"); $logger->pushGlobalActionLog("{$generalName}{$josaYi} 세력을 해산했습니다."); $logger->pushGeneralHistoryLog("{$nationName}{$josaUl} 해산");