From aa98cebe6add2280d44ca73ca58563c3d4f97256 Mon Sep 17 00:00:00 2001 From: WBHarry Date: Mon, 11 Aug 2025 22:42:16 +0200 Subject: [PATCH] Fixed the filtering of refreshable features --- module/applications/dialogs/downtime.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/applications/dialogs/downtime.mjs b/module/applications/dialogs/downtime.mjs index 10708d02..b0f51c4e 100644 --- a/module/applications/dialogs/downtime.mjs +++ b/module/applications/dialogs/downtime.mjs @@ -95,8 +95,9 @@ export default class DhpDowntime extends HandlebarsApplicationMixin(ApplicationV if (x.system.actions) { const recoverable = x.system.actions.reduce((acc, action) => { if ( - (action.uses.recovery && (action.uses.recovery === 'longRest') === !this.shortrest) || - action.uses.recovery === 'shortRest' + action.uses.recovery && + ((action.uses.recovery === 'longRest' && !this.shortrest) || + action.uses.recovery === 'shortRest') ) { acc.push({ title: x.name,