[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

@ -1,6 +1,6 @@
import D20RollDialog from '../applications/dialogs/d20RollDialog.mjs';
import D20Roll from './d20Roll.mjs';
import { parseRallyDice, setDiceSoNiceForDualityRoll } from '../helpers/utils.mjs';
import { parseRallyDice, setDiceSoNiceForDualityRoll, shouldUseHopeFearAutomation } from '../helpers/utils.mjs';
import { getDiceSoNicePresets } from '../config/generalConfig.mjs';
import { updateResourcesForDualityReroll } from './helpers.mjs';
@ -312,11 +312,9 @@ export default class DualityRoll extends D20Roll {
}
static async addDualityResourceUpdates(config) {
const automationSettings = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Automation);
const hopeFearAutomation = automationSettings.hopeFear;
if (
!config.source?.actor ||
(game.user.isGM ? !hopeFearAutomation.gm : !hopeFearAutomation.players) ||
!shouldUseHopeFearAutomation() ||
config.actionType === 'reaction' ||
config.skips?.resources
)