mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 07:59:03 +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');
|
const change = c.changes.find(ch => ch.key === 'system.bonuses.rally');
|
||||||
if (change) a.push({ value: c.id, label: change.value });
|
if (change) a.push({ value: c.id, label: change.value });
|
||||||
return a;
|
return a;
|
||||||
}, [])
|
}, []);
|
||||||
if (rallyChoices.length) {
|
if (rallyChoices.length) {
|
||||||
mods.rally = {
|
mods.rally = {
|
||||||
label: 'DAGGERHEART.CLASS.Feature.rallyDice',
|
label: 'DAGGERHEART.CLASS.Feature.rallyDice',
|
||||||
|
|
@ -322,11 +322,13 @@ export default class DamageRoll extends DHRoll {
|
||||||
[`system.damage.${damageType}`]: {
|
[`system.damage.${damageType}`]: {
|
||||||
...updateMessage,
|
...updateMessage,
|
||||||
total: parsedRoll.total,
|
total: parsedRoll.total,
|
||||||
[`parts.${part}`]: {
|
parts: [
|
||||||
|
{
|
||||||
...rollPart,
|
...rollPart,
|
||||||
total: parsedRoll.total,
|
total: parsedRoll.total,
|
||||||
dice: rerolledDice
|
dice: rerolledDice
|
||||||
}
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue