Corrected downtime prep from error state

This commit is contained in:
WBHarry 2025-12-08 01:04:21 +01:00
parent 28976bb4b8
commit 37bd0a50e3

View file

@ -118,7 +118,7 @@ export default class DhpDowntime extends HandlebarsApplicationMixin(ApplicationV
if (
x.system.resource &&
x.system.resource.type &&
refreshIsAllowed([this.shortrest ? 'shortRest' : 'longRest'], action.uses.recovery)
refreshIsAllowed([this.shortrest ? 'shortRest' : 'longRest'], x.system.resource.recovery)
) {
acc.push({
title: game.i18n.localize(`TYPES.Item.${x.type}`),