Critical first 👀

This commit is contained in:
WBHarry 2026-06-21 01:05:25 +02:00
parent 629268caf9
commit 3dc8379ff5

View file

@ -777,17 +777,15 @@ export default class TagTeamDialog extends HandlebarsApplicationMixin(Applicatio
if (shouldUseHopeFearAutomation({ gmAsPlayer: true })) { if (shouldUseHopeFearAutomation({ gmAsPlayer: true })) {
const fearResourceMap = actorResourceMaps[tagTeamData.initiator.memberId]; const fearResourceMap = actorResourceMaps[tagTeamData.initiator.memberId];
for (const memberId in tagTeamData.members) { for (const memberId in tagTeamData.members) {
const resourceMap = actorResourceMaps[memberId]; const resourceMap = actorResourceMaps[memberId];
if (finalRoll.withHope) { if (finalRoll.isCritical) {
resourceMap.addResources([{ key: 'hope', value: 1, enabled: true }]);
}
else if (finalRoll.isCritical) {
resourceMap.addResources([ resourceMap.addResources([
{ key: 'stress', value: -1, enabled: true }, { key: 'stress', value: -1, enabled: true },
{ key: 'hope', value: 1, enabled: true } { key: 'hope', value: 1, enabled: true }
]); ]);
} } else if (finalRoll.withHope) {
else if (finalRoll.withFear) { resourceMap.addResources([{ key: 'hope', value: 1, enabled: true }]);
} else if (finalRoll.withFear) {
fearResourceMap.addResources([{ key: 'fear', value: 1, enabled: true }]); fearResourceMap.addResources([{ key: 'fear', value: 1, enabled: true }]);
} }
} }