fix: 누락분 수정
This commit is contained in:
@@ -346,7 +346,7 @@ function getActionCrewTypeClass(?string $type){
|
|||||||
throw new \InvalidArgumentException("{$type}은 올바른 병종 효과가 아님");
|
throw new \InvalidArgumentException("{$type}은 올바른 병종 효과가 아님");
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildActionCrewTypeClass(?string $type):BaseSpecial{
|
function buildActionCrewTypeClass(?string $type):iAction{
|
||||||
static $cache = [];
|
static $cache = [];
|
||||||
if($type === null){
|
if($type === null){
|
||||||
$type = 'None';
|
$type = 'None';
|
||||||
|
|||||||
@@ -69,7 +69,9 @@ class GameUnitDetail implements iAction
|
|||||||
$this->info = $info;
|
$this->info = $info;
|
||||||
$this->initSkillTrigger = $initSkillTrigger;
|
$this->initSkillTrigger = $initSkillTrigger;
|
||||||
$this->phaseSkillTrigger = $phaseSkillTrigger;
|
$this->phaseSkillTrigger = $phaseSkillTrigger;
|
||||||
$this->iActionList = array_map('buildActionCrewTypeClass', $iActionList ?? []);
|
$this->iActionList = array_map(function($rawAction){
|
||||||
|
return buildActionCrewTypeClass($rawAction);
|
||||||
|
}, $iActionList ?? []);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getInfo(): string
|
public function getInfo(): string
|
||||||
|
|||||||
Reference in New Issue
Block a user