From ab538df3aabb9a5a1f53b41a8a3494e72bf45dfb Mon Sep 17 00:00:00 2001 From: WBHarry <89362246+WBHarry@users.noreply.github.com> Date: Sun, 1 Feb 2026 00:59:50 +0100 Subject: [PATCH 1/6] [Fix] 1601 - Template Enrichment (#1609) * Fixed so param.range is compared as lowerCase * . --- module/enrichers/TemplateEnricher.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/module/enrichers/TemplateEnricher.mjs b/module/enrichers/TemplateEnricher.mjs index 4b9b052e..4bc8fdeb 100644 --- a/module/enrichers/TemplateEnricher.mjs +++ b/module/enrichers/TemplateEnricher.mjs @@ -4,6 +4,7 @@ export default function DhTemplateEnricher(match, _options) { const params = parseInlineParams(match[1]); const { type, angle = CONFIG.MeasuredTemplate.defaults.angle, inline = false } = params; const direction = Number(params.direction) || 0; + params.range = params.range?.toLowerCase(); const range = params.range && Number.isNaN(Number(params.range)) ? Object.values(CONFIG.DH.GENERAL.templateRanges).find( From 668dbdf8f4bcaf6f1055bad3197a96c16f5f7840 Mon Sep 17 00:00:00 2001 From: WBHarry <89362246+WBHarry@users.noreply.github.com> Date: Sun, 1 Feb 2026 01:19:31 +0100 Subject: [PATCH 2/6] Fixed character hopeResource to be set as 'isReversed' again, so damage and healing is applied correctly (#1620) --- module/data/actor/character.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/data/actor/character.mjs b/module/data/actor/character.mjs index bf6e83c0..8af4c74c 100644 --- a/module/data/actor/character.mjs +++ b/module/data/actor/character.mjs @@ -41,7 +41,8 @@ export default class DhCharacter extends BaseDataActor { min: 0, integer: true, label: 'DAGGERHEART.GENERAL.hope' - }) + }), + isReversed: new fields.BooleanField({ initial: false }) }) }), traits: new fields.SchemaField({ From 491d921a9b9bf54e62d18b8ad71a140348159fa4 Mon Sep 17 00:00:00 2001 From: WBHarry <89362246+WBHarry@users.noreply.github.com> Date: Mon, 2 Feb 2026 00:40:09 +0100 Subject: [PATCH 3/6] Made sure item.toChat enriches descriptions (#1625) --- module/documents/item.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/documents/item.mjs b/module/documents/item.mjs index fe62c5bd..67f7d253 100644 --- a/module/documents/item.mjs +++ b/module/documents/item.mjs @@ -185,7 +185,10 @@ export default class DHItem extends foundry.documents.Item { tags: this._getTags() }, actions: item.system.actionsList, - description: this.system.description + description: await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.system.description, { + relativeTo: this.parent, + rollData: this.parent?.getRollData() ?? {} + }) }; const msg = { From 31c70469efc8797a67cf30fbc8cba93150e22d09 Mon Sep 17 00:00:00 2001 From: WBHarry <89362246+WBHarry@users.noreply.github.com> Date: Mon, 2 Feb 2026 00:57:17 +0100 Subject: [PATCH 4/6] [Fix] ActionField UUID for Actor Actions (#1622) * Fixed so that actionFields correctly grab a uuid for actions that are directly on an actor * Corrected to logical or * Update module/data/fields/actionField.mjs Co-authored-by: Carlos Fernandez --------- Co-authored-by: Carlos Fernandez --- module/data/fields/actionField.mjs | 5 +++-- system.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/module/data/fields/actionField.mjs b/module/data/fields/actionField.mjs index 9c006beb..4cadeac4 100644 --- a/module/data/fields/actionField.mjs +++ b/module/data/fields/actionField.mjs @@ -152,8 +152,9 @@ export function ActionMixin(Base) { } get uuid() { - if (!(this.item instanceof game.system.api.documents.DHItem)) return null; - return `${this.item.uuid}.${this.documentName}.${this.id}`; + const isItem = this.item instanceof game.system.api.documents.DHItem; + const isActor = this.item instanceof game.system.api.documents.DhpActor; + return isItem || isActor ? `${this.item.uuid}.${this.documentName}.${this.id}` : null; } get sheet() { diff --git a/system.json b/system.json index 90ebf11d..323cf00d 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.6.2", + "version": "1.6.3", "compatibility": { "minimum": "13.346", "verified": "13.351", From c1924534da3d334d1f19330d8b29b4a15c515a26 Mon Sep 17 00:00:00 2001 From: WBHarry Date: Tue, 3 Feb 2026 23:26:29 +0100 Subject: [PATCH 5/6] Fixed a case where SceneConfig could fail to save because flags were not submitted --- module/applications/scene/sceneConfigSettings.mjs | 1 + system.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/module/applications/scene/sceneConfigSettings.mjs b/module/applications/scene/sceneConfigSettings.mjs index 98e18f09..5335be16 100644 --- a/module/applications/scene/sceneConfigSettings.mjs +++ b/module/applications/scene/sceneConfigSettings.mjs @@ -103,6 +103,7 @@ export default class DhSceneConfigSettings extends foundry.applications.sheets.S /** @override */ async _processSubmitData(event, form, submitData, options) { + if (!submitData.flags) submitData.flags = {}; submitData.flags.daggerheart = this.daggerheartFlag.toObject(); submitData.flags.daggerheart.sceneEnvironments = submitData.flags.daggerheart.sceneEnvironments.filter(x => foundry.utils.fromUuidSync(x) diff --git a/system.json b/system.json index 323cf00d..fd0d7e1c 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.6.3", + "version": "1.6.4", "compatibility": { "minimum": "13.346", "verified": "13.351", From c8d1ea14603a2ceab3a40a6a262b5c2f528f18ce Mon Sep 17 00:00:00 2001 From: WBHarry <89362246+WBHarry@users.noreply.github.com> Date: Tue, 3 Feb 2026 23:31:18 +0100 Subject: [PATCH 6/6] [Fix] TriggerConfig Expand/Collapse (#1630) * Fixed so that the angle icon indicating expand/collapse for a trigger config actually flips when clicked * Fixed styles --- module/applications/sheets-configs/action-base-config.mjs | 2 +- styles/less/sheets/actions/actions.less | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/module/applications/sheets-configs/action-base-config.mjs b/module/applications/sheets-configs/action-base-config.mjs index 42252362..34543086 100644 --- a/module/applications/sheets-configs/action-base-config.mjs +++ b/module/applications/sheets-configs/action-base-config.mjs @@ -314,7 +314,7 @@ export default class DHActionBaseConfig extends DaggerheartSheet(ApplicationV2) const index = Number.parseInt(button.dataset.index); const toggle = (element, codeMirror) => { codeMirror.classList.toggle('revealed'); - const button = element.querySelector('a > i'); + const button = element.querySelector('.expand-trigger > i'); button.classList.toggle('fa-angle-up'); button.classList.toggle('fa-angle-down'); }; diff --git a/styles/less/sheets/actions/actions.less b/styles/less/sheets/actions/actions.less index 07c99491..9be56c8e 100644 --- a/styles/less/sheets/actions/actions.less +++ b/styles/less/sheets/actions/actions.less @@ -58,6 +58,7 @@ flex: 1; display: flex; flex-direction: column; + gap: 8px; select { flex: 1; @@ -96,6 +97,7 @@ height: 0; min-height: 0; transition: height 0.1s ease-in-out; + overflow: hidden; &.revealed { height: 300px;