Skip to content

Commit 9e5bcde

Browse files
committed
FIX - chat combat not removing health below 0
1 parent b768c66 commit 9e5bcde

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/utils/chatActionHandlers/applyMultiDefenseActions.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ async function applyDamageToActor(actor, amount) {
108108
const primary = 'system.characteristics.secondaries.lifePoints.value';
109109
let cur = getProperty(actor, primary);
110110
if (typeof cur === 'number' && !Number.isNaN(cur)) {
111-
const next = Math.max(0, cur - amount);
111+
// const next = Math.max(0, cur - amount);
112+
const next = cur - amount;
112113
await actor.update({ [primary]: next });
113114
ui.notifications?.info(`${actor.name}: -${amount} LP`);
114115
return true;

0 commit comments

Comments
 (0)