From 7b4de067ee98b7d90a551db9976b5eeae455563e Mon Sep 17 00:00:00 2001 From: WBHarry Date: Sat, 6 Dec 2025 22:34:14 +0100 Subject: [PATCH] Fixed so hope is taken from the initiator if the roll is with fear --- module/applications/dialogs/tagTeamDialog.mjs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/module/applications/dialogs/tagTeamDialog.mjs b/module/applications/dialogs/tagTeamDialog.mjs index b8eb617c..b53d03ab 100644 --- a/module/applications/dialogs/tagTeamDialog.mjs +++ b/module/applications/dialogs/tagTeamDialog.mjs @@ -263,14 +263,16 @@ export default class TagTeamDialog extends HandlebarsApplicationMixin(Applicatio const fearUpdate = { key: 'fear', value: null, total: null, enabled: true }; for (let memberId of Object.keys(this.data.members)) { const resourceUpdates = []; - if (systemData.roll.isCritical || systemData.roll.result.duality === 1) { - const value = - memberId !== this.data.initiator.id - ? 1 - : this.data.initiator.cost - ? 1 - this.data.initiator.cost - : 1; + const rollGivesHope = systemData.roll.isCritical || systemData.roll.result.duality === 1; + if (memberId === this.data.initiator.id) { + const value = this.data.initiator.cost + ? rollGivesHope + ? 1 - this.data.initiator.cost + : -this.data.initiator.cost + : 1; resourceUpdates.push({ key: 'hope', value: value, total: -value, enabled: true }); + } else if (rollGivesHope) { + resourceUpdates.push({ key: 'hope', value: 1, total: -1, enabled: true }); } if (systemData.roll.isCritical) resourceUpdates.push({ key: 'stress', value: -1, total: 1, enabled: true }); if (systemData.roll.result.duality === -1) {