mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 19:51:08 +01:00
Fixed so character's with wildcard images don't break beastform (#815)
This commit is contained in:
parent
c74c7aaedd
commit
61ba82be05
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue