Moving chat display to be after processing (#1428)

This commit is contained in:
Nick Salyzyn 2025-12-18 05:37:09 -07:00 committed by GitHub
parent e74ce7726a
commit 05dec9fcea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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