From afb53d121b515cd9f53d3c729d1608db4ddc1340 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Tue, 28 Mar 2023 10:05:48 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=8A=B9=EA=B8=B0=20=EC=B4=88=EA=B8=B0?= =?UTF-8?q?=ED=99=94=EC=8B=9C=20=EA=B0=80=EB=93=9D=EC=B0=A8=EB=A9=B4=20?= =?UTF-8?q?=EC=82=AC=EC=9A=A9=20=ED=92=80=EC=9D=B4=20=EB=A6=AC=EC=85=8B?= =?UTF-8?q?=EB=90=98=EC=A7=80=20=EC=95=8A=EB=8A=94=20=EB=B2=84=EA=B7=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/Command/General/che_전투특기초기화.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hwe/sammo/Command/General/che_전투특기초기화.php b/hwe/sammo/Command/General/che_전투특기초기화.php index cf5bfa5f..93b8117d 100644 --- a/hwe/sammo/Command/General/che_전투특기초기화.php +++ b/hwe/sammo/Command/General/che_전투특기초기화.php @@ -87,6 +87,12 @@ class che_전투특기초기화 extends Command\GeneralCommand{ $yearMonth = Util::joinYearMonth($env['year'], $env['month']); $oldSpecialList = $general->getAuxVar($oldTypeKey)??[]; $oldSpecialList[] = $general->getVar(static::$specialType); + if(static::$specialType == 'special' && count($oldSpecialList) == count(GameConst::$availableSpecialDomestic)){ + $oldSpecialList = [$general->getVar(static::$specialType)]; + } + else if(static::$specialType == 'special2' && count($oldSpecialList) == count(GameConst::$availableSpecialWar)){ + $oldSpecialList = [$general->getVar(static::$specialType)]; + } $general->setAuxVar($oldTypeKey, $oldSpecialList); $general->setVar(static::$specialType, 'None');