Added support for beastform advantageOn

This commit is contained in:
WBHarry 2025-07-16 22:20:02 +02:00
parent bc92dec7f0
commit f348072c9c

View file

@ -69,6 +69,7 @@ export default class DHBeastform extends BaseDataItem {
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: [...beastformEffect.changes, { key: 'system.advantageSources', mode: 2, value: this.advantageOn }],
system: { system: {
characterTokenData: { characterTokenData: {
tokenImg: this.parent.parent.prototypeToken.texture.src, tokenImg: this.parent.parent.prototypeToken.texture.src,