Merge branch 'main' into feature/344-bardic-rally

This commit is contained in:
Dapoolp 2025-07-17 00:14:45 +02:00
commit a98a703a6f
451 changed files with 786 additions and 13358 deletions

View file

@ -190,7 +190,12 @@ export const registerRollDiceHooks = () => {
if (config.roll.isCritical) updates.push({ key: 'stress', value: -1 });
if (config.roll.result.duality === -1) updates.push({ key: 'fear', value: 1 });
if (updates.length) actor.modifyResource(updates);
if (updates.length) {
const target = actor.system.partner ?? actor;
if (!['dead', 'unconcious'].some(x => actor.statuses.has(x))) {
target.modifyResource(updates);
}
}
if (!config.roll.hasOwnProperty('success') && !config.targets?.length) return;