Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong tooltip while hovering over max hit points #2175

Closed
Ikaguia opened this issue Feb 9, 2023 · 0 comments
Closed

Wrong tooltip while hovering over max hit points #2175

Ikaguia opened this issue Feb 9, 2023 · 0 comments
Milestone

Comments

@Ikaguia
Copy link
Contributor

Ikaguia commented Feb 9, 2023

When you hover over your max hit points, it always says 'max hit points override', regardless of if there is an override or if it is the auto calculated value.
image
I believe it's due to this line

<span data-tooltip="{{#if hp.max}}DND5E.HitPointsOverride{{else}}DND5E.HitPointsMax{{/if}}">

referencing the hp.max value post data preparation, instead of the source hp, thus always being truthy (unless your max hp is 0 for some reason)

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

No branches or pull requests

2 participants