diff --git a/module/data/Item/attribute.mjs b/module/data/Item/attribute.mjs index 1bb65c1..aaa92dc 100644 --- a/module/data/Item/attribute.mjs +++ b/module/data/Item/attribute.mjs @@ -166,7 +166,7 @@ export class AttributeItemData extends foundry.abstract.TypeDataModel { // the Actor's getData method, letting us augment the context dynamically for // the @active roll context const speaker = foundry.documents.ChatMessage.implementation.getSpeaker({ - actor: this.parent.parent + actor: this.parent.parent, }); await macro?.execute({ item: this.parent, speaker }); diff --git a/module/data/Item/generic.mjs b/module/data/Item/generic.mjs index 5c0b8db..9af745a 100644 --- a/module/data/Item/generic.mjs +++ b/module/data/Item/generic.mjs @@ -88,10 +88,10 @@ export class GenericItemData extends foundry.abstract.TypeDataModel { // the Actor's getData method, letting us augment the context dynamically for // the @active roll context const speaker = foundry.documents.ChatMessage.implementation.getSpeaker({ - actor: this.parent.parent + actor: this.parent.parent, }); - await macro?.execute({ item: this.parent }); + await macro?.execute({ item: this.parent, speaker }); }; // #endregion Methods };