Make the generic Item subtype actually provide the speaker data to the macro

This commit is contained in:
Oliver 2026-05-02 19:28:03 -06:00
parent c6d3c094b8
commit 77413687e9
2 changed files with 3 additions and 3 deletions

View file

@ -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 });