fix: 누락분 수정

This commit is contained in:
2023-05-11 01:08:10 +09:00
parent 8f5d9194f8
commit 5229cbe09e
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -346,7 +346,7 @@ function getActionCrewTypeClass(?string $type){
throw new \InvalidArgumentException("{$type}은 올바른 병종 효과가 아님");
}
function buildActionCrewTypeClass(?string $type):BaseSpecial{
function buildActionCrewTypeClass(?string $type):iAction{
static $cache = [];
if($type === null){
$type = 'None';
+3 -1
View File
@@ -69,7 +69,9 @@ class GameUnitDetail implements iAction
$this->info = $info;
$this->initSkillTrigger = $initSkillTrigger;
$this->phaseSkillTrigger = $phaseSkillTrigger;
$this->iActionList = array_map('buildActionCrewTypeClass', $iActionList ?? []);
$this->iActionList = array_map(function($rawAction){
return buildActionCrewTypeClass($rawAction);
}, $iActionList ?? []);
}
public function getInfo(): string