From 61ba82be058ef8c25c509c06690a4db705e94d70 Mon Sep 17 00:00:00 2001 From: WBHarry <89362246+WBHarry@users.noreply.github.com> Date: Mon, 11 Aug 2025 00:22:46 +0200 Subject: [PATCH] Fixed so character's with wildcard images don't break beastform (#815) --- module/data/item/beastform.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/data/item/beastform.mjs b/module/data/item/beastform.mjs index 68c934ed..3c9bef5c 100644 --- a/module/data/item/beastform.mjs +++ b/module/data/item/beastform.mjs @@ -134,6 +134,7 @@ export default class DHBeastform extends BaseDataItem { this.parent.effects.filter(x => x.type !== 'beastform').map(x => x.toObject()) ); + const tokenImages = await this.parent.parent.getTokenImages(); const beastformEffect = this.parent.effects.find(x => x.type === 'beastform'); await beastformEffect.updateSource({ changes: [ @@ -148,7 +149,7 @@ export default class DHBeastform extends BaseDataItem { ], system: { characterTokenData: { - tokenImg: this.parent.parent.prototypeToken.texture.src, + tokenImg: tokenImages[0], tokenRingImg: this.parent.parent.prototypeToken.ring.subject.texture, tokenSize: { height: this.parent.parent.prototypeToken.height,