refactor: fix command parsing

This commit is contained in:
2026-04-02 00:14:43 +08:00
parent a8ff79e4e5
commit ff9d9bd9a1
8 changed files with 111 additions and 122 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ describe('Rule System', () => {
const ctx = game.dispatchCommand('attack goblin --power 5');
expect(ctx!.state).toBe('done');
expect(ctx!.resolution).toEqual({ target: 'goblin', power: '5' });
expect(ctx!.resolution).toEqual({ target: 'goblin', power: 5 });
});
it('should complete immediately if generator does not yield', () => {