mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-06 04:44:16 +02:00
Fixed dice.denomination being lost on damage reroll
This commit is contained in:
parent
6cb31ac3b7
commit
65b2c97950
1 changed files with 1 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ export default class DHActorRoll extends foundry.abstract.TypeDataModel {
|
||||||
if (x.isDeterministic && !x.operator) acc += x.total;
|
if (x.isDeterministic && !x.operator) acc += x.total;
|
||||||
return acc;
|
return acc;
|
||||||
}, 0);
|
}, 0);
|
||||||
partData.dice = rerolled.dice;
|
partData.dice = rerolled.dice.map(d => ({ ...d.toJSON(), dice: d.denomination }));
|
||||||
partData.total = rerolled.total;
|
partData.total = rerolled.total;
|
||||||
partData.roll = rerolled.toJSON();
|
partData.roll = rerolled.toJSON();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue