mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 14:36:13 +01:00
Made change in enricher instead of dialog
This commit is contained in:
parent
721135ab0b
commit
7dcd3b24d8
2 changed files with 3 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ export default class D20RollDialog extends HandlebarsApplicationMixin(Applicatio
|
||||||
this.roll = roll;
|
this.roll = roll;
|
||||||
this.config = config;
|
this.config = config;
|
||||||
this.config.experiences = [];
|
this.config.experiences = [];
|
||||||
this.reactionOverride = config.actionType === 'reaction'|| config.roll?.type === 'reaction';
|
this.reactionOverride = config.actionType === 'reaction';
|
||||||
this.selectedEffects = this.config.bonusEffects;
|
this.selectedEffects = this.config.bonusEffects;
|
||||||
|
|
||||||
if (config.source?.action) {
|
if (config.source?.action) {
|
||||||
|
|
|
||||||
|
|
@ -90,11 +90,12 @@ export const enrichedDualityRoll = async (
|
||||||
event: event ?? {},
|
event: event ?? {},
|
||||||
title: title,
|
title: title,
|
||||||
headerTitle: label,
|
headerTitle: label,
|
||||||
|
actionType: reaction ? 'reaction' : null,
|
||||||
roll: {
|
roll: {
|
||||||
trait: traitValue && target ? traitValue : null,
|
trait: traitValue && target ? traitValue : null,
|
||||||
difficulty: difficulty,
|
difficulty: difficulty,
|
||||||
advantage,
|
advantage,
|
||||||
type: reaction ? 'reaction' : null
|
// type: reaction ? 'reaction' : null //not needed really but keeping it for troubleshooting
|
||||||
},
|
},
|
||||||
skips: {
|
skips: {
|
||||||
resources: !grantResources,
|
resources: !grantResources,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue