Fixed DiceSoNice integration again

This commit is contained in:
WBHarry 2025-07-10 02:16:42 +02:00
parent b3e7c6b9b2
commit 09f5fbcc28
4 changed files with 24 additions and 9 deletions

View file

@ -154,7 +154,7 @@ export const registerRollDiceHooks = () => {
if (updates.length) actor.modifyResource(updates);
if (!config.roll.hasOwnProperty('success') && !config.targets.length) return;
if (!config.roll.hasOwnProperty('success') && !config.targets?.length) return;
const rollResult = config.roll.success || config.targets.some(t => t.hit),
looseSpotlight = !rollResult || config.roll.result.duality === -1;