fix: 버프의 만료 기간을 다음턴 직전까지로 변경
- 전투 버프 등에서 장수 턴시간에 따라 효과보는 시간을 동일하게.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -313,6 +313,8 @@ class TurnExecutionHelper
|
||||
|
||||
$general->increaseInheritancePoint(InheritanceKey::lived_month, 1);
|
||||
|
||||
$general->clearExpiredBuff();
|
||||
|
||||
$rng = new RandUtil(new LiteHashDRBG(Util::simpleSerialize(
|
||||
UniqueConst::$hiddenSeed,
|
||||
'preprocess',
|
||||
|
||||
Reference in New Issue
Block a user