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