[Fix] 850 - Downtime Refreshes (#859)

* Fixed the filtering of refreshable features

* Raised version
This commit is contained in:
WBHarry 2025-08-12 05:14:42 +02:00 committed by GitHub
parent 68c9cd52ea
commit 7755179434
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View file

@ -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,

View file

@ -2,7 +2,7 @@
"id": "daggerheart",
"title": "Daggerheart",
"description": "An unofficial implementation of the Daggerheart system",
"version": "1.0.0",
"version": "1.0.2",
"compatibility": {
"minimum": "13",
"verified": "13.347",