Fixed so that attribute rolls for characters are set as Action type (#1347)

This commit is contained in:
WBHarry 2025-11-30 00:37:25 +01:00 committed by GitHub
parent f29198e81f
commit f41f0b20b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -197,7 +197,7 @@ export default class D20RollDialog extends HandlebarsApplicationMixin(Applicatio
this.config.actionType = this.reactionOverride this.config.actionType = this.reactionOverride
? CONFIG.DH.ITEM.actionTypes.reaction.id ? CONFIG.DH.ITEM.actionTypes.reaction.id
: this.config.actionType === CONFIG.DH.ITEM.actionTypes.reaction.id : this.config.actionType === CONFIG.DH.ITEM.actionTypes.reaction.id
? null ? CONFIG.DH.ITEM.actionTypes.action.id
: this.config.actionType; : this.config.actionType;
this.render(); this.render();
} }

View file

@ -717,6 +717,7 @@ export default class CharacterSheet extends DHBaseActorSheet {
}; };
const result = await this.document.diceRoll({ const result = await this.document.diceRoll({
...config, ...config,
actionType: 'action',
headerTitle: `${game.i18n.localize('DAGGERHEART.GENERAL.dualityRoll')}: ${this.actor.name}`, headerTitle: `${game.i18n.localize('DAGGERHEART.GENERAL.dualityRoll')}: ${this.actor.name}`,
title: game.i18n.format('DAGGERHEART.UI.Chat.dualityRoll.abilityCheckTitle', { title: game.i18n.format('DAGGERHEART.UI.Chat.dualityRoll.abilityCheckTitle', {
ability: abilityLabel ability: abilityLabel