fix: 징병 가능 여부 판별 시 상대 년도 판별 로직 오류 해결

This commit is contained in:
Jinhyun Kim
2023-07-29 23:55:04 +09:00
parent 0f085c7f36
commit 43285662de
@@ -53,7 +53,7 @@ class AvailableRecruitCrewType extends Constraint{
} }
$crewType = GameUnitConst::byID($this->arg); $crewType = GameUnitConst::byID($this->arg);
if($crewType->isValid($ownCities, $ownRegions, $year = $startyear, $tech)){ if($crewType->isValid($ownCities, $ownRegions, $year - $startyear, $tech)){
return true; return true;
} }