From c42f876d4f8028a111e98c6be831d5e475208865 Mon Sep 17 00:00:00 2001 From: WBHarry Date: Sat, 24 Jan 2026 20:52:27 +0100 Subject: [PATCH] Fixed error being thrown when canceling a /dr roll --- module/enrichers/DualityRollEnricher.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/module/enrichers/DualityRollEnricher.mjs b/module/enrichers/DualityRollEnricher.mjs index 91149fd8..f6de8107 100644 --- a/module/enrichers/DualityRollEnricher.mjs +++ b/module/enrichers/DualityRollEnricher.mjs @@ -107,6 +107,7 @@ export const enrichedDualityRoll = async ( if (target) { const result = await target.diceRoll(config); + if (!result) return; result.resourceUpdates.updateResources(); } else { // For no target, call DualityRoll directly with basic data