mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 14:36:13 +01:00
Fixed error being thrown when canceling a /dr roll
This commit is contained in:
parent
a78ef1f70c
commit
c42f876d4f
1 changed files with 1 additions and 0 deletions
|
|
@ -107,6 +107,7 @@ export const enrichedDualityRoll = async (
|
||||||
|
|
||||||
if (target) {
|
if (target) {
|
||||||
const result = await target.diceRoll(config);
|
const result = await target.diceRoll(config);
|
||||||
|
if (!result) return;
|
||||||
result.resourceUpdates.updateResources();
|
result.resourceUpdates.updateResources();
|
||||||
} else {
|
} else {
|
||||||
// For no target, call DualityRoll directly with basic data
|
// For no target, call DualityRoll directly with basic data
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue