fix(turn): preserve legacy alternative command execution
This commit is contained in:
1 parent
1d2ca3e17e
commit
18b380aaa6
6 files changed
+154
-39
No files matched your search
@@ -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: ['휴식'],
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user