Fixed so that reseting Uses upon finishing downtime uses the actor's rollData and not just the actor data

This commit is contained in:
WBHarry 2026-05-02 17:39:21 +02:00
parent 2e524878b3
commit 7d02edc628

View file

@ -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 });