mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41: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())
|
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');
|
const beastformEffect = this.parent.effects.find(x => x.type === 'beastform');
|
||||||
await beastformEffect.updateSource({
|
await beastformEffect.updateSource({
|
||||||
changes: [
|
changes: [
|
||||||
|
|
@ -148,7 +149,7 @@ export default class DHBeastform extends BaseDataItem {
|
||||||
],
|
],
|
||||||
system: {
|
system: {
|
||||||
characterTokenData: {
|
characterTokenData: {
|
||||||
tokenImg: this.parent.parent.prototypeToken.texture.src,
|
tokenImg: tokenImages[0],
|
||||||
tokenRingImg: this.parent.parent.prototypeToken.ring.subject.texture,
|
tokenRingImg: this.parent.parent.prototypeToken.ring.subject.texture,
|
||||||
tokenSize: {
|
tokenSize: {
|
||||||
height: this.parent.parent.prototypeToken.height,
|
height: this.parent.parent.prototypeToken.height,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue