From e9821624028b5eb3b8f0b926fb5cd6337eff4743 Mon Sep 17 00:00:00 2001 From: WBHarry Date: Sat, 14 Feb 2026 12:25:00 +0100 Subject: [PATCH] Fixed so that advantage/disadvantage dice are properly considered when rerolling --- module/dice/dualityRoll.mjs | 4 +++- system.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/module/dice/dualityRoll.mjs b/module/dice/dualityRoll.mjs index e65d0ff5..cafe0cff 100644 --- a/module/dice/dualityRoll.mjs +++ b/module/dice/dualityRoll.mjs @@ -409,7 +409,9 @@ export default class DualityRoll extends D20Roll { difficulty: message.system.roll.difficulty ? Number(message.system.roll.difficulty) : null } }); - newRoll.extra = newRoll.extra.slice(2); + + const extraIndex = newRoll.advantage ? 3 : 2; + newRoll.extra = newRoll.extra.slice(extraIndex); const tagTeamSettings = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.TagTeamRoll); diff --git a/system.json b/system.json index 96636bab..fb23ad7b 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.7.1", + "version": "1.7.2", "compatibility": { "minimum": "13.346", "verified": "13.351",