Fixed DiceSoNice rolling on damage

This commit is contained in:
WBHarry 2026-07-18 18:54:29 +02:00
parent cb917b2dc9
commit 02b685a8fd
3 changed files with 8 additions and 6 deletions

View file

@ -51,9 +51,10 @@ export default class DamageRoll extends DHRoll {
const diceRolls = [];
if (game.modules.get('dice-so-nice')?.active) {
config.mute = true;
const pool = foundry.dice.terms.PoolTerm.fromRolls(
Object.values(config.damage.types)
);
const pool = foundry.dice.terms.PoolTerm.fromRolls([
...(config.damage.main ? [config.damage.main] : []),
...Object.values(config.damage.resources)
]);
diceRolls.push(Roll.fromTerms([pool]));
}