[Fix] TagTag/GroupRoll Resource Handling (#2022)

This commit is contained in:
WBHarry 2026-06-21 04:50:09 +02:00 committed by GitHub
parent 29be8c1395
commit 08b95e48d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 92 additions and 47 deletions

View file

@ -885,3 +885,8 @@ export async function triggerChatRollFx(rolls, options = { whisper: false, blind
foundry.audio.AudioHelper.play({ src: CONFIG.sounds.dice });
}
}
export function shouldUseHopeFearAutomation(options = { gmAsPlayer: true }) {
const { hopeFear } = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Automation);
return (!game.user.isGM || options.gmAsPlayer) ? hopeFear.players : hopeFear.gm;
}