fix(event): face element do not set no-unsafe-super attr

This commit is contained in:
Il Harper 2024-03-29 17:48:24 +08:00
parent 579622df1a
commit a9781d2098
No known key found for this signature in database
GPG Key ID: 4B71FCA698E7E8EC

View File

@ -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,
}),