Skip to content

Commit

Permalink
[#3042] Fix issue with token bars not displaying effective max
Browse files Browse the repository at this point in the history
  • Loading branch information
arbron committed Feb 13, 2024
1 parent 1586662 commit af52d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/documents/token.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default class TokenDocument5e extends SystemFlagsMixin(TokenDocument) {
if ( data?.attribute === "attributes.hp" ) {
const hp = this.actor.system.attributes.hp || {};
data.value += (hp.temp || 0);
data.max = Math.max(0, data.effectiveMax);
data.max = Math.max(0, hp.effectiveMax);
}
return data;
}
Expand Down

0 comments on commit af52d27

Please sign in to comment.