mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 23:49:02 +01:00
Added Dead/Unconcious
This commit is contained in:
parent
b75c83b5fe
commit
6d30c17457
4 changed files with 27 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue