Skip to content

Refresh bars when updating limited item uses.#6927

Merged
Fyorl merged 4 commits into
foundryvtt:5.3.xfrom
DJ4ddi:5.3.x
Apr 14, 2026
Merged

Refresh bars when updating limited item uses.#6927
Fyorl merged 4 commits into
foundryvtt:5.3.xfrom
DJ4ddi:5.3.x

Conversation

@DJ4ddi

@DJ4ddi DJ4ddi commented Apr 12, 2026

Copy link
Copy Markdown
Contributor

When using item uses/charges as token attributes, the bar currently doesn't refresh when the item's uses are modified. This PR aims to resolve the issue for updates from any source.

@Fyorl Fyorl added bug Functionality which is not working as intended system: canvas Vision modes and scene interaction labels Apr 13, 2026
@DJ4ddi

DJ4ddi commented Apr 13, 2026

Copy link
Copy Markdown
Contributor Author

Should have installed the linter before opening the PR :|
Formatting is compliant now.

@DJ4ddi

DJ4ddi commented Apr 13, 2026

Copy link
Copy Markdown
Contributor Author

Reproduction for the described issue (since I was too lazy to create one to link):

  • Create an actor with a limited use item (e.g. a potion).
  • Create a linked token from the actor.
  • Set the token's bar attribute to the item.
  • Change the item's uses (e.g. with the token HUD). Observe how the bar does not refresh.
  • Repeat previous steps for a linked token actor. Observe how the bar only updates once (when the token actor refreshes), then never again.

@Fyorl Fyorl added this to the D&D5E 5.3.2 milestone Apr 14, 2026
@Fyorl
Fyorl merged commit d8c2c34 into foundryvtt:5.3.x Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Functionality which is not working as intended system: canvas Vision modes and scene interaction

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants