feat: parseScenarioEnvironment에서 scenarioEffect를 조건부로 추가하도록 수정

This commit is contained in:
2025-12-28 14:59:44 +00:00
parent 174c171e10
commit 66ebf6b76e
+5 -1
View File
@@ -124,7 +124,11 @@ const parseScenarioEnvironment = (
? merged.scenarioEffect
: undefined;
return { mapName, unitSet, scenarioEffect };
const result: ScenarioEnvironment = { mapName, unitSet };
if (scenarioEffect !== undefined) {
result.scenarioEffect = scenarioEffect;
}
return result;
};
const parseNationRow = (row: unknown, index: number): ScenarioNation => {