feat: add support of skill for ArrayContent.

This commit is contained in:
Rintim 2023-12-23 02:41:08 +08:00
parent e0ec29c5e4
commit 4d758a9a54
No known key found for this signature in database
GPG Key ID: BE9E1EA615BACFCF
1 changed files with 7 additions and 1 deletions

View File

@ -11345,7 +11345,13 @@ export class Library extends Uninstantable {
next.player = player;
next._trigger = trigger;
next.triggername = event.triggername;
next.setContent(info.content);
if ("contents" in info && Array.isArray(info.contents)) {
next.setContents(info.contents);
} else {
next.setContent(info.content);
}
next.skillHidden = event.skillHidden;
if (info.forceDie) next.forceDie = true;
if (info.forceOut) next.includeOut = true;