Skip to content

Commit

Permalink
Update lancer.js
Browse files Browse the repository at this point in the history
Fix #259
  • Loading branch information
mclemente committed Aug 26, 2024
1 parent 698e416 commit 2a7630c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module/providers/lancer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ export default class lancerEstimationProvider extends EstimationProvider {
}

fraction(token) {
const hp = token.actor.system.derived.hp;
const hp = token.actor.system.hp;
return hp.value / hp.max;
}

get breakCondition() {
return `
|| game.settings.get('healthEstimate', 'core.breakOnZeroMaxHP')
&& (token.actor.system.mech?.hp.max === 0 || token.actor.system?.derived?.hp?.max === 0)`;
&& (token.actor.system?.hp?.max === 0)`;
}
}

0 comments on commit 2a7630c

Please sign in to comment.