Fix hp < 0 and D30 with D20 bonus roll

This commit is contained in:
2026-06-11 20:48:46 +02:00
parent c20750caa7
commit ea7acf6bf8
29 changed files with 130 additions and 110 deletions
-3
View File
@@ -72,9 +72,6 @@ export default class LethalFantasyActor extends Actor {
/* *************************************************/
async applyDamage(hpLoss) {
let hp = this.system.hp.value + hpLoss
if (hp < 0) {
hp = 0
}
this.update({ "system.hp.value": hp })
}