Skip to content

Commit

Permalink
Fix for Generic Systems
Browse files Browse the repository at this point in the history
Fix #145
  • Loading branch information
mclemente committed Apr 9, 2023
1 parent aad170e commit b83748c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions module/EstimationProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,8 @@ export class GenericEstimationProvider extends EstimationProvider {
},
},
...addTemp,
...breakOnZeroMaxHP,
};
}

get breakCondition() {
const hpPath = sGet("core.custom.FractionHP");
let hp = getNestedData(token, hpPath) || token.actor.system.attributes?.hp || token.actor.system.hp;
return `|| (game.settings.get('healthEstimate', 'core.breakOnZeroMaxHP') && ${hp.max} === 0)`;
}
}

export class ageSystemEstimationProvider extends EstimationProvider {
Expand Down

0 comments on commit b83748c

Please sign in to comment.