Fix updating hope/fear on companion rolls

This commit is contained in:
Carlos Fernandez 2026-06-13 22:08:45 -04:00
parent baafa6b989
commit fc494e8467
2 changed files with 2 additions and 4 deletions

View file

@ -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