fix: 피장파장 시, 턴이 60턴이 늘어나는 것이 아니라 60턴이 되는 버그 수정

This commit is contained in:
2022-02-05 07:43:27 +00:00
committed by Gitea
parent e7af718a0f
commit 52f6cb2f30
@@ -230,7 +230,9 @@ class che_피장파장 extends Command\NationCommand
$yearMonth = Util::joinYearMonth($env['year'], $env['month']);
$nationStor->setValue($cmd->getNextExecuteKey(), $yearMonth + $this->getTargetPostReqTurn());
$destNationStor->setValue($cmd->getNextExecuteKey(), $yearMonth + static::$delayCnt);
$destDelay = max($destNationStor->getValue($cmd->getNextExecuteKey()) ?? 0, $yearMonth);
$destNationStor->setValue($cmd->getNextExecuteKey(), $destDelay + static::$delayCnt);
$general->applyDB($db);