From 5229cbe09e4220d48accd9d026676eb6e7c23888 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Thu, 11 May 2023 01:08:10 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=88=84=EB=9D=BD=EB=B6=84=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_converter.php | 2 +- hwe/sammo/GameUnitDetail.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hwe/func_converter.php b/hwe/func_converter.php index fc4a0d06..a688bc75 100644 --- a/hwe/func_converter.php +++ b/hwe/func_converter.php @@ -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'; diff --git a/hwe/sammo/GameUnitDetail.php b/hwe/sammo/GameUnitDetail.php index 134d3f64..d2cf3958 100644 --- a/hwe/sammo/GameUnitDetail.php +++ b/hwe/sammo/GameUnitDetail.php @@ -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