diff --git a/hwe/sammo/General.php b/hwe/sammo/General.php index a33ce880..745e4190 100644 --- a/hwe/sammo/General.php +++ b/hwe/sammo/General.php @@ -137,6 +137,22 @@ class General extends GeneralBase implements iAction return; } + foreach($rawBuffList as $rawBuff){ + $buffItem = InstantBuff::fromArray($rawBuff); + $this->instantBuffList[] = buildBuffClass($buffItem->buffName); + } + + } + + //기한이 지난 버프를 삭제 + function clearExpiredBuff() + { + $this->instantBuffList = []; + $rawBuffList = $this->getAuxVar(GeneralAuxKey::instantBuffList); + if($rawBuffList === null){ + return; + } + $newRawBuffList = []; $reqUpdate = false; diff --git a/hwe/sammo/TurnExecutionHelper.php b/hwe/sammo/TurnExecutionHelper.php index f75b8c2c..abcc7c2e 100644 --- a/hwe/sammo/TurnExecutionHelper.php +++ b/hwe/sammo/TurnExecutionHelper.php @@ -313,6 +313,8 @@ class TurnExecutionHelper $general->increaseInheritancePoint(InheritanceKey::lived_month, 1); + $general->clearExpiredBuff(); + $rng = new RandUtil(new LiteHashDRBG(Util::simpleSerialize( UniqueConst::$hiddenSeed, 'preprocess',