Allowing coundown automations to work for players on action rolls

This commit is contained in:
nsalyzyn 2025-12-11 17:28:35 -07:00
parent 8eae1c0763
commit 1a79c16d19
3 changed files with 22 additions and 14 deletions

View file

@ -247,10 +247,12 @@ export const registerRollDiceHooks = () => {
!config.skips?.updateCountdowns
) {
const { updateCountdowns } = game.system.api.applications.ui.DhCountdowns;
await updateCountdowns(CONFIG.DH.GENERAL.countdownProgressionTypes.actionRoll.id);
if (config.roll.result.duality === -1) {
await updateCountdowns(CONFIG.DH.GENERAL.countdownProgressionTypes.fear.id);
await updateCountdowns(CONFIG.DH.GENERAL.countdownProgressionTypes.actionRoll.id,
CONFIG.DH.GENERAL.countdownProgressionTypes.fear.id);
} else {
await updateCountdowns(CONFIG.DH.GENERAL.countdownProgressionTypes.actionRoll.id);
}
}