This commit is contained in:
WBHarry 2026-04-16 09:45:22 +02:00
parent 6c8246294c
commit 8495b4adcc
2 changed files with 2 additions and 7 deletions

View file

@ -156,12 +156,7 @@ export default class D20RollDialog extends HandlebarsApplicationMixin(Applicatio
}
if (this.config.uses) this.config.uses = foundry.utils.mergeObject(this.config.uses, rest.uses);
if (rest.roll?.dice) {
Object.entries(rest.roll.dice).forEach(([key, value]) => {
if(key === 'advantageFaces')
this.roll[key] = Number.parseInt(value);
else
this.roll[key] = value;
});
this.roll = foundry.utils.mergeObject(this.roll, rest.roll.dice)
}
if (rest.hasOwnProperty('trait')) {
this.config.roll.trait = rest.trait;