From 49f2e67254fe398189b39f5d6abf144838931675 Mon Sep 17 00:00:00 2001 From: The Happy Anarchist Date: Sat, 24 Oct 2020 18:38:11 -1000 Subject: [PATCH] Negative hp fix Allows damage to be applied to token from chat card to go below zero. Addresses issue #26. --- src/module/actor/entity.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module/actor/entity.js b/src/module/actor/entity.js index 97c147c..e3f9dac 100644 --- a/src/module/actor/entity.js +++ b/src/module/actor/entity.js @@ -568,7 +568,7 @@ export class AcksActor extends Actor { const hp = this.data.data.hp; // Remaining goes to health - const dh = Math.clamped(hp.value - amount, 0, hp.max); + const dh = Math.clamped(hp.value - amount, -99, hp.max); // Update the Actor return this.update({