Fixed DamageActions

This commit is contained in:
WBHarry 2026-07-15 02:00:43 +02:00
parent 8e4ca52ab7
commit fea3671069

View file

@ -19,11 +19,15 @@ export default class DamageRoll extends DHRoll {
for (const roll of config.roll) {
await roll.roll.evaluate();
if (!config.damage?.types) config.damage = { types: {} };
config.damage.types[roll.applyTo] = {
roll: roll.roll,
damageTypes: roll.damageTypes ?? []
};
}
roll._evaluated = true;
}
static async buildPost(roll, config, message) {