Skip to content

Fix modifiers being lost on a reroll - #2667

Merged
CarlosFdez merged 2 commits into
mainfrom
fix/reroll
Dec 1, 2026
Merged

CarlosFdez merged 2 commits into
mainfrom
fix/reroll

Conversation

@CarlosFdez

Copy link
Copy Markdown
Contributor

The real issue is the d20roll class (reused for duality rolls) calling constructFormula in the constructor, leading it to dig into roll data again to recreate all the modifiers. This behavior is not something we should keep, but we should wait until 2.14 (aka development) to try removing persisted rolldata again.

Comment thread module/dice/d20Roll.mjs Resolved
Comment thread module/helpers/utils.mjs Resolved

@WBHarry WBHarry left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked and worked ⭐

@CarlosFdez
CarlosFdez merged commit c8e0bd4 into main Dec 1, 2026
1 check passed
@CarlosFdez
CarlosFdez deleted the fix/reroll branch December 1, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants