Skip to content

fix(HealthColors): v2.1.2 – Bug fixes#2229

Merged
Alicekb merged 1 commit into
Roll20:masterfrom
steverobertsuk:sr/healthcolors-v2-1-2
May 21, 2026
Merged

fix(HealthColors): v2.1.2 – Bug fixes#2229
Alicekb merged 1 commit into
Roll20:masterfrom
steverobertsuk:sr/healthcolors-v2-1-2

Conversation

@steverobertsuk
Copy link
Copy Markdown
Contributor

[2.1.2] – 2026-05-17 · Milestone

Fixed

  • Fixed Aura 1 being reset to transparent/zero radius in tint mode when a token's HP changed. clearAuras was unconditionally zeroing aura1_color and aura1_radius even though HealthColors never writes to Aura 1 in tint mode, causing any manually-placed Aura 1 to be wiped on every health update. Aura 1 is now left untouched when tint mode is active. (#17)
  • Fixed incomplete token refresh when toggling between aura and tint modes. The previous approach ran a separate aura1 cleanup pass followed by the async drain queue, which could interleave with the change:graphic events the cleanup itself triggered. Replaced with a single modeSwitch drain queue that clears aura1 and re-evaluates each token in one atomic step per token, ensuring all tokens transition cleanly in both directions.

…c mode-switch refresh

Two related fixes for aura/tint mode management.

clearAuras was unconditionally zeroing aura1_color and aura1_radius on
every HP change, even in tint mode where HealthColors never writes to
Aura 1. Any manually-placed Aura 1 was wiped on each health update.
clearAuras is now mode-aware: it only touches Aura 1 when in aura mode.

The TINT toggle previously ran a separate aura1 cleanup forEach then
called menuForceUpdate, which could interleave with the change:graphic
events the cleanup itself triggered. Replaced with a single modeSwitch
drain queue that clears aura1 and re-evaluates each token atomically,
ensuring all tokens transition cleanly in both directions.

Bumps version to 2.1.2, updates script.json, CHANGELOG, and README.

Signed-off-by: Steve Roberts <steve@shadowcomputers.co.uk>
@Alicekb Alicekb merged commit e025ded into Roll20:master May 21, 2026
1 check passed
@steverobertsuk steverobertsuk deleted the sr/healthcolors-v2-1-2 branch May 21, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants