Skip to content

Commit

Permalink
[#5038] Fix items without recovery periods incorrectly being consider…
Browse files Browse the repository at this point in the history
…ed 'combat only'.
  • Loading branch information
Fyorl committed Jan 22, 2025
1 parent 6b6e923 commit e545e8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion module/data/activity/fields/consumption-targets-field.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ export class ConsumptionTargetData extends foundry.abstract.DataModel {
break;
default: return false;
}
return recovery?.every(r => CONFIG.DND5E.limitedUsePeriods[r.period]?.type === "combat") ?? false;
if ( !recovery?.length ) return false;
return recovery.every(r => CONFIG.DND5E.limitedUsePeriods[r.period]?.type === "combat");
}

/* -------------------------------------------- */
Expand Down

0 comments on commit e545e8a

Please sign in to comment.