mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-22 18:39:55 +02:00
Fix updating hope/fear on companion rolls
This commit is contained in:
parent
baafa6b989
commit
fc494e8467
2 changed files with 2 additions and 4 deletions
|
|
@ -62,9 +62,7 @@ export default class DhCompanionSheet extends DHBaseActorSheet {
|
|||
await this.document.update({ 'system.resources.stress.value': newValue });
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
/** @this {DhCompanionSheet} **/
|
||||
static async #actionRoll(event) {
|
||||
const partner = this.actor.system.partner;
|
||||
const config = {
|
||||
|
|
@ -80,6 +78,7 @@ export default class DhCompanionSheet extends DHBaseActorSheet {
|
|||
|
||||
const result = await partner.diceRoll(config);
|
||||
this.consumeResource(result?.costs);
|
||||
result?.resourceUpdates.updateResources();
|
||||
}
|
||||
|
||||
// Remove when Action Refactor part #2 done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue