From 76bfc56ce0a5243fc930c7883c643aa2a4be8612 Mon Sep 17 00:00:00 2001 From: Carlos Fernandez Date: Thu, 22 Jan 2026 04:47:22 -0500 Subject: [PATCH] Set default data for a roll instead and fix title --- lang/en.json | 1 + module/dice/damageRoll.mjs | 3 --- module/dice/dhRoll.mjs | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lang/en.json b/lang/en.json index 8e64ab7d..7877f37c 100755 --- a/lang/en.json +++ b/lang/en.json @@ -607,6 +607,7 @@ }, "RerollDialog": { "title": "Reroll", + "damageTitle": "Reroll Damage", "deselectDiceNotification": "Deselect one of the selected dice first", "acceptCurrentRolls": "Accept Current Rolls" }, diff --git a/module/dice/damageRoll.mjs b/module/dice/damageRoll.mjs index 9dde8c1e..cd26eb21 100644 --- a/module/dice/damageRoll.mjs +++ b/module/dice/damageRoll.mjs @@ -292,9 +292,6 @@ export default class DamageRoll extends DHRoll { if (isDie) diceIndex++; return fixedTerm; }), - options: { - roll: [] - }, class: 'DamageRoll', evaluated: false }); diff --git a/module/dice/dhRoll.mjs b/module/dice/dhRoll.mjs index a5ac5091..9a029a96 100644 --- a/module/dice/dhRoll.mjs +++ b/module/dice/dhRoll.mjs @@ -3,7 +3,7 @@ import D20RollDialog from '../applications/dialogs/d20RollDialog.mjs'; export default class DHRoll extends Roll { baseTerms = []; constructor(formula, data = {}, options = {}) { - super(formula, data, options); + super(formula, data, foundry.utils.mergeObject({ roll: [] }, options)); options.bonusEffects = this.bonusEffectBuilder(); if (!this.data || !Object.keys(this.data).length) this.data = options.data; }