fix(turn): preserve legacy alternative command execution

This commit is contained in:
2026-07-26 04:31:48 +00:00
parent 1d2ca3e17e
commit 18b380aaa6
6 changed files with 154 additions and 39 deletions
@@ -160,8 +160,11 @@ const createCommandProfile = (request: TurnCommandFixtureRequest): TurnCommandPr
if (!GENERAL_TURN_COMMAND_KEYS.includes(request.action as (typeof GENERAL_TURN_COMMAND_KEYS)[number])) {
throw new Error(`Unknown general command: ${request.action}`);
}
const generalActions = [request.action, '휴식', 'che_인재탐색', 'che_해산', 'che_이동'] as Array<
(typeof GENERAL_TURN_COMMAND_KEYS)[number]
>;
return {
general: [request.action as (typeof GENERAL_TURN_COMMAND_KEYS)[number], '휴식'],
general: [...new Set(generalActions)],
nation: ['휴식'],
};
}