fix: maxPhase 연산에서는 oppose가 없음

This commit is contained in:
2021-09-15 19:06:15 +00:00
committed by Gitea
parent ca49fc368a
commit dc835b86e9
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ class WarUnitGeneral extends WarUnit
{
$phase = $this->getCrewType()->speed;
$phase = $this->general->onCalcStat($this->general, 'initWarPhase', $phase, ['isAttacker' => $this->isAttacker]);
$phase = $this->oppose->general->onCalcOpposeStat($this->general, 'initWarPhase', $phase, ['isAttacker' => $this->isAttacker]);
//maxPhase는 상대가 결정되기 전에 계산되므로 oppose를 호출할 수 없음
return $phase + $this->bonusPhase;
}