mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-22 02:19:54 +02:00
Moved DamageTypes to roll.options
This commit is contained in:
parent
124c4749db
commit
fbcb9e4572
6 changed files with 72 additions and 76 deletions
|
|
@ -19,12 +19,10 @@ export default class DamageRoll extends DHRoll {
|
|||
|
||||
for (const roll of config.roll) {
|
||||
await roll.roll.evaluate();
|
||||
|
||||
roll.roll.options = { damageTypes: roll.damageTypes ?? [] };
|
||||
|
||||
if (!config.damage?.types) config.damage = { types: {} };
|
||||
config.damage.types[roll.applyTo] = {
|
||||
roll: roll.roll,
|
||||
damageTypes: roll.damageTypes ?? []
|
||||
};
|
||||
config.damage.types[roll.applyTo] = roll.roll;
|
||||
}
|
||||
|
||||
roll._evaluated = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue