[Fix] Action Uses Not Spent (#2029)

This commit is contained in:
WBHarry 2026-06-21 23:04:28 +02:00 committed by GitHub
parent 3840f39c97
commit f385982987
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -160,7 +160,7 @@ export default class D20RollDialog extends HandlebarsApplicationMixin(Applicatio
}
if (rest.hasOwnProperty('trait')) {
this.config.roll.trait = rest.trait;
if (!this.config.source.item)
if (!this.config.source.item && this.config.roll.trait)
this.config.title = game.i18n.format('DAGGERHEART.UI.Chat.dualityRoll.abilityCheckTitle', {
ability: game.i18n.localize(abilities[this.config.roll.trait]?.label)
});
@ -225,7 +225,6 @@ export default class D20RollDialog extends HandlebarsApplicationMixin(Applicatio
}
static async submitRoll(event) {
event.preventDefault();
await this.close({ submitted: true });
}