fix: keep scenario war specials in war slot

This commit is contained in:
2026-08-04 01:55:13 +00:00
parent f4a1e2258d
commit 136acadd04
2 changed files with 85 additions and 5 deletions
+5 -5
View File
@@ -136,13 +136,13 @@ class GeneralBuilder{
$this->specialWar = GameConst::$defaultSpecialWar;
}
try{
$this->specialDomestic = SpecialityHelper::getDomesticClassByName($special);
$this->specialWar = GameConst::$defaultSpecialWar;
}
catch (\Exception $e){
$this->specialDomestic = GameConst::$defaultSpecialDomestic;
$this->specialWar = SpecialityHelper::getWarClassByName($special);
}
catch (\Exception $e){
$this->specialDomestic = SpecialityHelper::getDomesticClassByName($special);
$this->specialWar = GameConst::$defaultSpecialWar;
}
return $this;
}
@@ -735,4 +735,4 @@ class GeneralBuilder{
return true; //생성되었다.
}
}
}