From 7dcd3b24d8497f82131ebd8d25596351781902c8 Mon Sep 17 00:00:00 2001 From: Nikhil Nagarajan Date: Mon, 26 Jan 2026 14:39:04 -0500 Subject: [PATCH] Made change in enricher instead of dialog --- module/applications/dialogs/d20RollDialog.mjs | 2 +- module/enrichers/DualityRollEnricher.mjs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/module/applications/dialogs/d20RollDialog.mjs b/module/applications/dialogs/d20RollDialog.mjs index fea86c8d..4a4b1556 100644 --- a/module/applications/dialogs/d20RollDialog.mjs +++ b/module/applications/dialogs/d20RollDialog.mjs @@ -9,7 +9,7 @@ export default class D20RollDialog extends HandlebarsApplicationMixin(Applicatio this.roll = roll; this.config = config; this.config.experiences = []; - this.reactionOverride = config.actionType === 'reaction'|| config.roll?.type === 'reaction'; + this.reactionOverride = config.actionType === 'reaction'; this.selectedEffects = this.config.bonusEffects; if (config.source?.action) { diff --git a/module/enrichers/DualityRollEnricher.mjs b/module/enrichers/DualityRollEnricher.mjs index f6de8107..3e4a39ce 100644 --- a/module/enrichers/DualityRollEnricher.mjs +++ b/module/enrichers/DualityRollEnricher.mjs @@ -90,11 +90,12 @@ export const enrichedDualityRoll = async ( event: event ?? {}, title: title, headerTitle: label, + actionType: reaction ? 'reaction' : null, roll: { trait: traitValue && target ? traitValue : null, difficulty: difficulty, advantage, - type: reaction ? 'reaction' : null + // type: reaction ? 'reaction' : null //not needed really but keeping it for troubleshooting }, skips: { resources: !grantResources,