Negative hp fix
Allows damage to be applied to token from chat card to go below zero. Addresses issue #26.master
parent
944e8a08f4
commit
49f2e67254
|
@ -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({
|
||||||
|
|
Loading…
Reference in New Issue