From 54dc2087e0ecbaddf36abbac5fefebd5d0596b19 Mon Sep 17 00:00:00 2001 From: nsalyzyn Date: Sun, 14 Dec 2025 15:37:19 -0700 Subject: [PATCH] Moving chat display to be after processing --- module/data/action/baseAction.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/data/action/baseAction.mjs b/module/data/action/baseAction.mjs index 93de0a2d..ae085064 100644 --- a/module/data/action/baseAction.mjs +++ b/module/data/action/baseAction.mjs @@ -193,8 +193,6 @@ export default class DHBaseAction extends ActionMixin(foundry.abstract.DataModel async use(event) { if (!this.actor) throw new Error("An Action can't be used outside of an Actor context."); - if (this.chatDisplay) await this.toChat(); - let config = this.prepareConfig(event); if (!config) return; @@ -211,6 +209,8 @@ export default class DHBaseAction extends ActionMixin(foundry.abstract.DataModel if (Hooks.call(`${CONFIG.DH.id}.postUseAction`, this, config) === false) return; + if (this.chatDisplay) await this.toChat(); + return config; }