mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 16:09:03 +01:00
Fix Hope gain on Duality Roll
This commit is contained in:
parent
5d6eb4b145
commit
d2b0ed4947
4 changed files with 15 additions and 13 deletions
|
|
@ -239,12 +239,10 @@ export const registerRollDiceHooks = () => {
|
|||
if (updates.length) {
|
||||
const target = actor.system.partner ?? actor;
|
||||
if (!['dead', 'unconscious'].some(x => actor.statuses.has(x))) {
|
||||
console.log(config.costs, updates)
|
||||
updates = [...(config.costs ?? []), ...updates];
|
||||
if(config.source.action)
|
||||
config.costs = updates;
|
||||
else
|
||||
if(config.rerolledRoll)
|
||||
target.modifyResource(updates);
|
||||
else
|
||||
config.costs = [...(config.costs ?? []), ...updates];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue