Fix hp < 0 and D30 with D20 bonus roll
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user