From 4e18ed827062d38d1b863f8537d453ebd64651cf Mon Sep 17 00:00:00 2001 From: WBHarry <89362246+WBHarry@users.noreply.github.com> Date: Fri, 9 Jan 2026 17:35:00 +0100 Subject: [PATCH] Fixed so that chatMessages always get actor data available (#1519) --- module/data/fields/actionField.mjs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/module/data/fields/actionField.mjs b/module/data/fields/actionField.mjs index 6257da38..d0d04721 100644 --- a/module/data/fields/actionField.mjs +++ b/module/data/fields/actionField.mjs @@ -272,12 +272,17 @@ export function ActionMixin(Base) { itemOrigin: this.item, description: this.description || (this.item instanceof Item ? this.item.system.description : '') }; + + const speaker = cls.getSpeaker(); const msg = { type: 'abilityUse', user: game.user.id, actor: { name: this.actor.name, img: this.actor.img }, author: this.author, - speaker: cls.getSpeaker(), + speaker: { + speaker, + actor: speaker.actor ?? this.actor + }, title: game.i18n.localize('DAGGERHEART.UI.Chat.action.title'), system: systemData, content: await foundry.applications.handlebars.renderTemplate(