From 7d02edc628aea77cf791319df6100c3dd54d7c29 Mon Sep 17 00:00:00 2001 From: WBHarry Date: Sat, 2 May 2026 17:39:21 +0200 Subject: [PATCH] Fixed so that reseting Uses upon finishing downtime uses the actor's rollData and not just the actor data --- module/applications/dialogs/downtime.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/applications/dialogs/downtime.mjs b/module/applications/dialogs/downtime.mjs index 5dc93bae..09d901f4 100644 --- a/module/applications/dialogs/downtime.mjs +++ b/module/applications/dialogs/downtime.mjs @@ -259,7 +259,7 @@ export default class DhpDowntime extends HandlebarsApplicationMixin(ApplicationV const resetValue = increasing ? 0 : feature.system.resource.max - ? new Roll(Roll.replaceFormulaData(feature.system.resource.max, this.actor)).evaluateSync().total + ? new Roll(Roll.replaceFormulaData(feature.system.resource.max, this.actor.getRollData())).evaluateSync().total : 0; await feature.update({ 'system.resource.value': resetValue });