Skip to content

Commit

Permalink
[#5254] Fix duplicating recovery on items if added by enchantment
Browse files Browse the repository at this point in the history
Swaps to displaying source data rather than derived recovery data.

Closes #5254
  • Loading branch information
arbron committed Feb 25, 2025
1 parent ac1cc7b commit a9f9a10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/applications/item/item-sheet-2.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default class ItemSheet5e2 extends ItemSheetV2Mixin(ItemSheet5e) {
{ value: "loseAll", label: "DND5E.USES.Recovery.Type.LoseAll" },
{ value: "formula", label: "DND5E.USES.Recovery.Type.Formula" }
];
context.usesRecovery = (context.system.uses?.recovery ?? []).map((data, index) => ({
context.usesRecovery = (context.source.uses?.recovery ?? []).map((data, index) => ({
data,
fields: context.fields.uses.fields.recovery.element.fields,
prefix: `system.uses.recovery.${index}.`,
Expand Down

0 comments on commit a9f9a10

Please sign in to comment.