Skip to content

[#6261] Add modifiers to DamageData#6834

Open
arbron wants to merge 1 commit into5.3.xfrom
damage/modifiers
Open

[#6261] Add modifiers to DamageData#6834
arbron wants to merge 1 commit into5.3.xfrom
damage/modifiers

Conversation

@arbron
Copy link
Collaborator

@arbron arbron commented Mar 16, 2026

Adds a new modifiers field for damage that is applied automatically to the formula. The DamageData model now automatically adds these modifiers to the formula, attaching to the first roll (if one can be found when using a custom formula).

The DamageData#scaledFormula supports passing in additional modifiers that are also appended. This is to support a future Rule active effect that adds modifiers to certain rolls at evaluation time (such as Elemental Adept, which would add min2 to all damage rolls from spells that deal a certain damage type).

Closes #6261

Adds a new modifiers field for damage that is applied automatically
to the formula. The `DamageData` model now automatically adds these
modifiers to the formula, attaching to the first roll (if one can
be found when using a custom formula).

The `DamageData#scaledFormula` supports passing in additional
modifiers that are also appended. This is to support a future Rule
active effect that adds modifiers to certain rolls at evaluation
time (such as Elemental Adept, which would add `min2` to all damage
rolls from spells that deal a certain damage type).

Closes #6261
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add modifiers field to DamageData

1 participant