From a9781d2098c810f16a7d77f806af2cd3a92c97a6 Mon Sep 17 00:00:00 2001 From: Il Harper Date: Fri, 29 Mar 2024 17:48:24 +0800 Subject: [PATCH] fix(event): face element do not set `no-unsafe-super` attr --- packages/engine-chronocat-event/src/parser/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/engine-chronocat-event/src/parser/index.ts b/packages/engine-chronocat-event/src/parser/index.ts index 7322070..05bca72 100644 --- a/packages/engine-chronocat-event/src/parser/index.ts +++ b/packages/engine-chronocat-event/src/parser/index.ts @@ -501,7 +501,8 @@ async function parseElements( id: m.faceElement!.faceIndex, name: `[${(await ctx.chronocat.api['chronocat.internal.qface.get'](`${m.faceElement!.faceIndex}`))!.QDes.slice(1)}]`, platform: ctx.chronocat.platform, - 'unsafe-super': m.faceElement!.faceType === FaceType.Super, + 'unsafe-super': + m.faceElement!.faceType === FaceType.Super ? true : undefined, 'unsafe-result-id': m.faceElement!.resultId, 'unsafe-chain-count': m.faceElement!.chainCount, }),