Added Dead/Unconcious

This commit is contained in:
WBHarry 2025-07-16 01:53:23 +02:00
parent b75c83b5fe
commit 6d30c17457
4 changed files with 27 additions and 5 deletions

View file

@ -192,7 +192,9 @@ export const registerRollDiceHooks = () => {
if (updates.length) {
const target = actor.system.partner ?? actor;
target.modifyResource(updates);
if (!['dead', 'unconcious'].some(x => actor.statuses.has(x))) {
target.modifyResource(updates);
}
}
if (!config.roll.hasOwnProperty('success') && !config.targets?.length) return;