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

View file

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