화계할때 수비자 확률 계산할때 crewType이 null이되서 동결되는 상태를 임시대처
왜 null이 되는지, 왜 crewType이 필요한지 아직 조사는 못하고 일단 긴급대처만 함
This commit is contained in:
1 parent
06959db5e5
commit
318a63ee9c
1 file changed
+3
@@ -340,6 +340,9 @@ class General implements iAction
|
||||
|
||||
function getCrewTypeObj(): GameUnitDetail
|
||||
{
|
||||
if ($this->getVar('crewtype') === null) {
|
||||
throw new \InvalidArgumentException('$this->getVar(crewtype) is null' . $this);
|
||||
}
|
||||
$crewType = GameUnitConst::byID($this->getVar('crewtype'));
|
||||
if ($crewType === null) {
|
||||
throw new \InvalidArgumentException('Invalid CrewType:' . $this->getVar('crewtype'));
|
||||
|
||||
Reference in new issue
Block a user