Made change in enricher instead of dialog

This commit is contained in:
Nikhil Nagarajan 2026-01-26 14:39:04 -05:00
parent 721135ab0b
commit 7dcd3b24d8
2 changed files with 3 additions and 2 deletions

View file

@ -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) {

View file

@ -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,