Added in a temp attack button, because why not

This commit is contained in:
WBHarry 2025-06-08 22:42:04 +02:00
parent 52484bd818
commit 9fe29e5136
7 changed files with 26 additions and 29 deletions

View file

@ -346,10 +346,7 @@ export default class DhpActor extends Actor {
: 0;
const update = {
'system.resources.hitPoints.value': Math.min(
this.system.resources.hitPoints.value + hpDamage,
this.system.resources.hitPoints.max
)
'system.resources.hitPoints.value': Math.max(this.system.resources.hitPoints.value - hpDamage, 0)
};
if (game.user.isGM) {