This commit is contained in:
Dapoolp 2025-07-24 23:48:05 +02:00
parent 9da6a13009
commit 192c739a58
13 changed files with 35 additions and 29 deletions

View file

@ -171,7 +171,7 @@ export default class DHBaseAction extends ActionMixin(foundry.abstract.DataModel
hasEffect: !!this.effects?.length,
hasSave: this.hasSave,
selectedRollMode: game.settings.get('core', 'rollMode'),
isFastForward: event.shiftKey || (!this.hasRoll && !this.hasSave),
isFastForward: event.shiftKey,
data: this.getRollData()
};
}

View file

@ -49,7 +49,7 @@ export default class DHDamageAction extends DHBaseAction {
const config = {
title: game.i18n.format('DAGGERHEART.UI.Chat.damageRoll.title', { damage: game.i18n.localize(this.name) }),
roll: formulas,
targets: systemData.targets.filter(t => t.hit) ?? data.targets,
targets: systemData.targets?.filter(t => t.hit) ?? data.targets,
hasSave: this.hasSave,
isCritical: systemData.roll?.isCritical ?? false,
source: systemData.source,