fix: don't assume costumes would always exist

This commit is contained in:
2026-03-21 17:57:16 +07:00 Unverified
parent 781a0d865e
commit 73f364a6e2
+5 -6
View File
@@ -242,12 +242,11 @@ export function card(app: App) {
})),
assets
.hook(
char.costumeId
? avatar.Costumes![char.costumeId].Art
: avatar.SideIconName.replace(
"AvatarIcon_Side",
"Gacha_AvatarImg",
),
(char.costumeId && avatar.Costumes?.[char.costumeId].Art) ||
avatar.SideIconName.replace(
"AvatarIcon_Side",
"Gacha_AvatarImg",
),
(buf) =>
featherImage(buf, {
passes: [[0, 0.3, 0, 0]],