Fixed /dr without target failing resource update

This commit is contained in:
WBHarry 2026-01-13 22:36:50 +01:00
parent acafd2c8b9
commit 5b61340fee
3 changed files with 4 additions and 2 deletions

View file

@ -309,7 +309,7 @@ Hooks.on('chatMessage', (_, message) => {
target,
difficulty,
title,
label: 'test',
label: game.i18n.localize('DAGGERHEART.GENERAL.dualityRoll'),
actionType: null,
advantage
});

View file

@ -261,6 +261,8 @@ export default class DualityRoll extends D20Roll {
}
static async handleTriggers(roll, config) {
if (!config.source?.actor) return;
const updates = [];
const dualityUpdates = await game.system.registeredTriggers.runTrigger(
CONFIG.DH.TRIGGER.triggers.dualityRoll.id,

View file

@ -86,9 +86,9 @@ export const enrichedDualityRoll = async (
const config = {
event: event ?? {},
title: title,
headerTitle: label,
roll: {
trait: traitValue && target ? traitValue : null,
label: label,
difficulty: difficulty,
advantage,
type: reaction ? 'reaction' : null