fix death roll function (#197)

This commit is contained in:
Murilo Brito 2025-06-28 15:45:59 -03:00 committed by GitHub
parent a2a2661033
commit 778e569037
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -647,7 +647,7 @@ export default class CharacterSheet extends DaggerheartSheet(ActorSheetV2) {
}
static async makeDeathMove() {
if (this.document.system.resources.hitPoints.value === this.document.system.resources.hitPoints.max) {
if (this.document.system.resources.hitPoints.value >= this.document.system.resources.hitPoints.maxTotal) {
await new DhpDeathMove(this.document).render(true);
}
}