mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 07:59:03 +01:00
Fixed the filtering of refreshable features
This commit is contained in:
parent
8ebd498054
commit
aa98cebe6a
1 changed files with 3 additions and 2 deletions
|
|
@ -95,8 +95,9 @@ export default class DhpDowntime extends HandlebarsApplicationMixin(ApplicationV
|
||||||
if (x.system.actions) {
|
if (x.system.actions) {
|
||||||
const recoverable = x.system.actions.reduce((acc, action) => {
|
const recoverable = x.system.actions.reduce((acc, action) => {
|
||||||
if (
|
if (
|
||||||
(action.uses.recovery && (action.uses.recovery === 'longRest') === !this.shortrest) ||
|
action.uses.recovery &&
|
||||||
action.uses.recovery === 'shortRest'
|
((action.uses.recovery === 'longRest' && !this.shortrest) ||
|
||||||
|
action.uses.recovery === 'shortRest')
|
||||||
) {
|
) {
|
||||||
acc.push({
|
acc.push({
|
||||||
title: x.name,
|
title: x.name,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue