From 3dc8379ff5bfb388351baa7fa806fa6bb94bc6e0 Mon Sep 17 00:00:00 2001 From: WBHarry Date: Sun, 21 Jun 2026 01:05:25 +0200 Subject: [PATCH] Critical first :eyes: --- module/applications/dialogs/tagTeamDialog.mjs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/module/applications/dialogs/tagTeamDialog.mjs b/module/applications/dialogs/tagTeamDialog.mjs index 6080da17..19869a00 100644 --- a/module/applications/dialogs/tagTeamDialog.mjs +++ b/module/applications/dialogs/tagTeamDialog.mjs @@ -777,17 +777,15 @@ export default class TagTeamDialog extends HandlebarsApplicationMixin(Applicatio if (shouldUseHopeFearAutomation({ gmAsPlayer: true })) { const fearResourceMap = actorResourceMaps[tagTeamData.initiator.memberId]; for (const memberId in tagTeamData.members) { - const resourceMap = actorResourceMaps[memberId]; - if (finalRoll.withHope) { - resourceMap.addResources([{ key: 'hope', value: 1, enabled: true }]); - } - else if (finalRoll.isCritical) { + const resourceMap = actorResourceMaps[memberId]; + if (finalRoll.isCritical) { resourceMap.addResources([ { key: 'stress', value: -1, enabled: true }, { key: 'hope', value: 1, enabled: true } ]); - } - else if (finalRoll.withFear) { + } else if (finalRoll.withHope) { + resourceMap.addResources([{ key: 'hope', value: 1, enabled: true }]); + } else if (finalRoll.withFear) { fearResourceMap.addResources([{ key: 'fear', value: 1, enabled: true }]); } }