Fix updating hope/fear on companion rolls (#2003)

This commit is contained in:
Carlos Fernandez 2026-06-14 06:26:29 -04:00 committed by GitHub
parent 2c09310694
commit 500dcb2214
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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