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){