mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-14 20:51:07 +01:00
Fixed /dr without target failing resource update
This commit is contained in:
parent
acafd2c8b9
commit
5b61340fee
3 changed files with 4 additions and 2 deletions
|
|
@ -309,7 +309,7 @@ Hooks.on('chatMessage', (_, message) => {
|
||||||
target,
|
target,
|
||||||
difficulty,
|
difficulty,
|
||||||
title,
|
title,
|
||||||
label: 'test',
|
label: game.i18n.localize('DAGGERHEART.GENERAL.dualityRoll'),
|
||||||
actionType: null,
|
actionType: null,
|
||||||
advantage
|
advantage
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -261,6 +261,8 @@ export default class DualityRoll extends D20Roll {
|
||||||
}
|
}
|
||||||
|
|
||||||
static async handleTriggers(roll, config) {
|
static async handleTriggers(roll, config) {
|
||||||
|
if (!config.source?.actor) return;
|
||||||
|
|
||||||
const updates = [];
|
const updates = [];
|
||||||
const dualityUpdates = await game.system.registeredTriggers.runTrigger(
|
const dualityUpdates = await game.system.registeredTriggers.runTrigger(
|
||||||
CONFIG.DH.TRIGGER.triggers.dualityRoll.id,
|
CONFIG.DH.TRIGGER.triggers.dualityRoll.id,
|
||||||
|
|
|
||||||
|
|
@ -86,9 +86,9 @@ export const enrichedDualityRoll = async (
|
||||||
const config = {
|
const config = {
|
||||||
event: event ?? {},
|
event: event ?? {},
|
||||||
title: title,
|
title: title,
|
||||||
|
headerTitle: label,
|
||||||
roll: {
|
roll: {
|
||||||
trait: traitValue && target ? traitValue : null,
|
trait: traitValue && target ? traitValue : null,
|
||||||
label: label,
|
|
||||||
difficulty: difficulty,
|
difficulty: difficulty,
|
||||||
advantage,
|
advantage,
|
||||||
type: reaction ? 'reaction' : null
|
type: reaction ? 'reaction' : null
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue