summon ally - mirror self fixes
This commit is contained in:
@@ -357,6 +357,13 @@ export class SummonAllyEffect extends BaseAllyEffect {
|
||||
scaleX: this.source.document.texture.scaleX * -1,
|
||||
scaleY: this.source.document.texture.scaleY,
|
||||
},
|
||||
ring: {
|
||||
enabled: this.source.document.ring.enabled,
|
||||
colors: {
|
||||
ring: this.source.document.ring.colors.ring,
|
||||
background: this.source.document.ring.colors.background,
|
||||
},
|
||||
},
|
||||
});
|
||||
this.data.mirrorChanges = [];
|
||||
for (const mirrorItem of mirrorActor.items) {
|
||||
@@ -369,7 +376,13 @@ export class SummonAllyEffect extends BaseAllyEffect {
|
||||
if (['weapon', 'armor', 'consumable', 'gear'].includes(mirrorItem.type)) {
|
||||
continue;
|
||||
}
|
||||
this.data.embeddedUpdates.Item[mirrorItem.name] = await mirrorActor.getEmbeddedDocument('Item', mirrorItem.id);
|
||||
this.data.embeddedUpdates.Item[mirrorItem.name] = await mirrorActor
|
||||
.getEmbeddedDocument('Item', mirrorItem.id)
|
||||
.clone({
|
||||
'system.choiceSets': {},
|
||||
'system.grants': [],
|
||||
});
|
||||
|
||||
if (mirrorItem.type === 'skill') {
|
||||
this.data.mirrorChanges.push({
|
||||
key: `@Skill{${mirrorItem.name}}[system.die.sides]`,
|
||||
|
||||
Reference in New Issue
Block a user