From a529eba693dc34c4925b9c49964054867e7eafdc Mon Sep 17 00:00:00 2001 From: hide_d Date: Fri, 1 May 2020 03:36:17 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/SpecialityHelper.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hwe/sammo/SpecialityHelper.php b/hwe/sammo/SpecialityHelper.php index e24fc382..3c677b9e 100644 --- a/hwe/sammo/SpecialityHelper.php +++ b/hwe/sammo/SpecialityHelper.php @@ -27,8 +27,8 @@ class SpecialityHelper{ } public static function getDomesticClassByName(?string $type):string{ - if($type === null || $type === '' || $type === 'None'){ - $type = GameConst::$defaultSpecialWar; + if($type === null || $type === '' || $type == 'None'){ + return GameConst::$defaultSpecialDomestic; } if(static::$domesticInv){ @@ -50,8 +50,8 @@ class SpecialityHelper{ } public static function getWarClassByName(?string $type):string{ - if($type === null || $type === '' || $type === 'None'){ - $type = GameConst::$defaultSpecialWar; + if($type === null || $type === '' || $type == 'None'){ + return GameConst::$defaultSpecialWar; } if(static::$warInv){