Skip to content

Commit

Permalink
Update dnd5e.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mclemente committed Mar 5, 2024
1 parent e9ac53e commit 45995b1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/module/providers/dnd5e.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ export default class dnd5eEstimationProvider extends EstimationProvider {

fraction(token) {
const hp = token.actor.system.attributes.hp;
let temp = 0;
if (token.actor.type === "character" && sGet("core.addTemp")) {
temp = hp.temp;
return Math.min(hp.pct/100, 1);
}
return Math.min((temp + hp.value) / hp.max, 1);
return Math.min(hp.value / hp.max, 1);
}

get breakCondition() {
Expand Down

0 comments on commit 45995b1

Please sign in to comment.