Corrected downtime prep from error state (#1390)

This commit is contained in:
WBHarry 2025-12-08 01:53:58 +01:00 committed by GitHub
parent d6b1c7a36c
commit f680ade1da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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}`),