mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-21 18:09:54 +02:00
Fixed DamageActions
This commit is contained in:
parent
8e4ca52ab7
commit
fea3671069
1 changed files with 4 additions and 0 deletions
|
|
@ -19,11 +19,15 @@ export default class DamageRoll extends DHRoll {
|
||||||
|
|
||||||
for (const roll of config.roll) {
|
for (const roll of config.roll) {
|
||||||
await roll.roll.evaluate();
|
await roll.roll.evaluate();
|
||||||
|
|
||||||
|
if (!config.damage?.types) config.damage = { types: {} };
|
||||||
config.damage.types[roll.applyTo] = {
|
config.damage.types[roll.applyTo] = {
|
||||||
roll: roll.roll,
|
roll: roll.roll,
|
||||||
damageTypes: roll.damageTypes ?? []
|
damageTypes: roll.damageTypes ?? []
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
roll._evaluated = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static async buildPost(roll, config, message) {
|
static async buildPost(roll, config, message) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue