From 2a55e317fcf36334452a4bc426c8204ebe423b0c Mon Sep 17 00:00:00 2001 From: Carlos Fernandez Date: Wed, 1 Apr 2026 16:56:44 -0400 Subject: [PATCH 1/3] Fix adversary damage rolls --- module/data/chat-message/actorRoll.mjs | 13 ++++++++----- module/data/fields/action/damageField.mjs | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/module/data/chat-message/actorRoll.mjs b/module/data/chat-message/actorRoll.mjs index b0e122d1..89f34949 100644 --- a/module/data/chat-message/actorRoll.mjs +++ b/module/data/chat-message/actorRoll.mjs @@ -54,11 +54,14 @@ export default class DHActorRoll extends foundry.abstract.TypeDataModel { } get roll() { - if (this.parent.type === 'dualityRoll') - return this.parent.rolls.find(x => x instanceof game.system.api.dice.DualityRoll); - - if (this.parent.type === 'fateRoll') - return this.parent.rolls.find(x => x instanceof game.system.api.dice.FateRoll); + switch (this.parent.type) { + case 'adversaryRoll': + return this.parent.rolls.find(x => x instanceof game.system.api.dice.D20Roll); + case 'dualityRoll': + return this.parent.rolls.find(x => x instanceof game.system.api.dice.DualityRoll); + case 'fateRoll': + return this.parent.rolls.find(x => x instanceof game.system.api.dice.FateRoll); + } return null; } diff --git a/module/data/fields/action/damageField.mjs b/module/data/fields/action/damageField.mjs index 94f70e68..d41d2d4a 100644 --- a/module/data/fields/action/damageField.mjs +++ b/module/data/fields/action/damageField.mjs @@ -56,7 +56,7 @@ export default class DamageField extends fields.SchemaField { ...config, roll: formulas, data: this.getRollData(), - isCritical: message?.system.roll.isCritical + isCritical: Boolean(message?.system.roll?.isCritical) }; delete damageConfig.evaluate; From 1df248925e52a5e38d91d02b418153bf6d79424f Mon Sep 17 00:00:00 2001 From: WBHarry Date: Wed, 1 Apr 2026 23:10:16 +0200 Subject: [PATCH 2/3] Raised foundry version --- system.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system.json b/system.json index cc322576..b1fe74d8 100644 --- a/system.json +++ b/system.json @@ -4,8 +4,8 @@ "description": "An unofficial implementation of the Daggerheart system", "version": "2.0.0", "compatibility": { - "minimum": "14.355", - "verified": "14.358", + "minimum": "14.359", + "verified": "14.359", "maximum": "14" }, "authors": [ From 7fa03c58e08f085c773dc22c6c936c2ad09f87e7 Mon Sep 17 00:00:00 2001 From: WBHarry Date: Wed, 1 Apr 2026 23:53:13 +0200 Subject: [PATCH 3/3] Fixed armor-slots styling in CharacterSheet --- styles/less/sheets/actors/character/sidebar.less | 1 + 1 file changed, 1 insertion(+) diff --git a/styles/less/sheets/actors/character/sidebar.less b/styles/less/sheets/actors/character/sidebar.less index 8bbede76..e7027163 100644 --- a/styles/less/sheets/actors/character/sidebar.less +++ b/styles/less/sheets/actors/character/sidebar.less @@ -305,6 +305,7 @@ position: relative; width: 95px; height: 30px; + white-space: nowrap; .status-label { padding: 2px 2px;