Negative hp fix

Allows damage to be applied to token from chat card to go below zero. Addresses issue #26.
master
The Happy Anarchist 2020-10-24 18:38:11 -10:00
parent 944e8a08f4
commit 49f2e67254
1 changed files with 1 additions and 1 deletions

View File

@ -568,7 +568,7 @@ export class AcksActor extends Actor {
const hp = this.data.data.hp; const hp = this.data.data.hp;
// Remaining goes to health // 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 // Update the Actor
return this.update({ return this.update({