mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
Update dhRoll.mjs (#449)
This commit is contained in:
parent
330e15cc46
commit
4defe69c21
1 changed files with 6 additions and 5 deletions
|
|
@ -193,11 +193,12 @@ export const registerRollDiceHooks = () => {
|
||||||
if (config.roll.isCritical) updates.push({ key: 'stress', value: -1 });
|
if (config.roll.isCritical) updates.push({ key: 'stress', value: -1 });
|
||||||
if (config.roll.result.duality === -1) updates.push({ key: 'fear', value: 1 });
|
if (config.roll.result.duality === -1) updates.push({ key: 'fear', value: 1 });
|
||||||
|
|
||||||
if (config.rerolledRoll.isCritical || config.rerolledRoll.result.duality === 1)
|
if (config.rerolledRoll) {
|
||||||
updates.push({ key: 'hope', value: -1 });
|
if (config.rerolledRoll.isCritical || config.rerolledRoll.result.duality === 1) updates.push({ key: 'hope', value: -1 });
|
||||||
if (config.rerolledRoll.isCritical) updates.push({ key: 'stress', value: 1 });
|
if (config.rerolledRoll.isCritical) updates.push({ key: 'stress', value: 1 });
|
||||||
if (config.rerolledRoll.result.duality === -1) updates.push({ key: 'fear', value: -1 });
|
if (config.rerolledRoll.result.duality === -1) updates.push({ key: 'fear', value: -1 });
|
||||||
|
}
|
||||||
|
|
||||||
if (updates.length) {
|
if (updates.length) {
|
||||||
const target = actor.system.partner ?? actor;
|
const target = actor.system.partner ?? actor;
|
||||||
if (!['dead', 'unconcious'].some(x => actor.statuses.has(x))) {
|
if (!['dead', 'unconcious'].some(x => actor.statuses.has(x))) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue