mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 23:49:02 +01:00
Fixed so rerolling damage doesn't make damageParts an object
This commit is contained in:
parent
006f9dde1f
commit
3f0457b8b9
1 changed files with 13 additions and 11 deletions
|
|
@ -164,7 +164,7 @@ export default class DamageRoll extends DHRoll {
|
|||
const change = c.changes.find(ch => ch.key === 'system.bonuses.rally');
|
||||
if (change) a.push({ value: c.id, label: change.value });
|
||||
return a;
|
||||
}, [])
|
||||
}, []);
|
||||
if (rallyChoices.length) {
|
||||
mods.rally = {
|
||||
label: 'DAGGERHEART.CLASS.Feature.rallyDice',
|
||||
|
|
@ -322,11 +322,13 @@ export default class DamageRoll extends DHRoll {
|
|||
[`system.damage.${damageType}`]: {
|
||||
...updateMessage,
|
||||
total: parsedRoll.total,
|
||||
[`parts.${part}`]: {
|
||||
parts: [
|
||||
{
|
||||
...rollPart,
|
||||
total: parsedRoll.total,
|
||||
dice: rerolledDice
|
||||
}
|
||||
]
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue