From c63ba3b41d597b39ca5de013acf1f44858308958 Mon Sep 17 00:00:00 2001 From: WBHarry <89362246+WBHarry@users.noreply.github.com> Date: Wed, 24 Dec 2025 03:05:27 +0100 Subject: [PATCH] [Fix] Action Source Handling (#1468) * Fixed so that action context.source can be assigned to * . * . --- .../sheets-configs/action-base-config.mjs | 2 +- system.json | 2 +- templates/sheets/items/feature/settings.hbs | 12 +++++------- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/module/applications/sheets-configs/action-base-config.mjs b/module/applications/sheets-configs/action-base-config.mjs index 7190a5b7..96790a5b 100644 --- a/module/applications/sheets-configs/action-base-config.mjs +++ b/module/applications/sheets-configs/action-base-config.mjs @@ -98,7 +98,7 @@ export default class DHActionBaseConfig extends DaggerheartSheet(ApplicationV2) async _prepareContext(_options) { const context = await super._prepareContext(_options, 'action'); - context.source = this.action._source; + context.source = this.action.toObject(true); context.openSection = this.openSection; context.tabs = this._getTabs(this.constructor.TABS); context.config = CONFIG.DH; diff --git a/system.json b/system.json index c58be61d..ef2c2432 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "id": "daggerheart", "title": "Daggerheart", "description": "An unofficial implementation of the Daggerheart system", - "version": "1.4.0", + "version": "1.4.1", "compatibility": { "minimum": "13.346", "verified": "13.351", diff --git a/templates/sheets/items/feature/settings.hbs b/templates/sheets/items/feature/settings.hbs index 63aa9502..e62db8e3 100644 --- a/templates/sheets/items/feature/settings.hbs +++ b/templates/sheets/items/feature/settings.hbs @@ -3,12 +3,10 @@ data-tab='{{tabs.settings.id}}' data-group='{{tabs.settings.group}}' > - {{#if (or (eq document.parent.type "adversary") (eq document.parent.type "environment"))}} -
- {{localize "DAGGERHEART.GENERAL.general"}} - {{localize "DAGGERHEART.CONFIG.FeatureForm.label"}} - {{formInput document.system.schema.fields.featureForm value=document.system.featureForm choices=featureFormChoices localize=true}} -
- {{/if}} +
+ {{localize "DAGGERHEART.GENERAL.general"}} + {{localize "DAGGERHEART.CONFIG.FeatureForm.label"}} + {{formInput document.system.schema.fields.featureForm value=document.system.featureForm choices=featureFormChoices localize=true}} +
{{> "systems/daggerheart/templates/sheets/global/partials/resource-section/resource-section.hbs" }} \ No newline at end of file