버그 수정

This commit is contained in:
2020-12-31 07:49:33 +09:00
parent 628c54044f
commit b2cca3687a
+4 -2
View File
@@ -10,6 +10,8 @@ use \sammo\GameConst;
use \sammo\SpecialityHelper; use \sammo\SpecialityHelper;
use function sammo\buildGeneralSpecialClass; use function sammo\buildGeneralSpecialClass;
use function sammo\buildGeneralSpecialDomesticClass;
use function sammo\buildGeneralSpecialWarClass;
class GeneralBuilder{ class GeneralBuilder{
@@ -132,12 +134,12 @@ class GeneralBuilder{
$this->specialWar = GameConst::$defaultSpecialWar; $this->specialWar = GameConst::$defaultSpecialWar;
} }
try{ try{
$this->specialDomestic = SpecialityHelper::getDomesticClassByName($special); $this->specialDomestic = buildGeneralSpecialDomesticClass($special);
$this->specialWar = GameConst::$defaultSpecialWar; $this->specialWar = GameConst::$defaultSpecialWar;
} }
catch (\Exception $e){ catch (\Exception $e){
$this->specialDomestic = GameConst::$defaultSpecialDomestic; $this->specialDomestic = GameConst::$defaultSpecialDomestic;
$this->specialWar = SpecialityHelper::getWarClassByName($special); $this->specialWar = buildGeneralSpecialWarClass($special);
} }
return $this; return $this;
} }