Fix rerolling when hope/fear automation is enabled (#1972)

This commit is contained in:
Carlos Fernandez 2026-06-05 05:31:01 -04:00 committed by GitHub
parent 52b81de11f
commit 2fc5b01f09
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,3 +1,5 @@
import { ResourceUpdateMap } from '../data/action/baseAction.mjs';
export function updateResourcesForDualityReroll(oldDuality, newDuality, actor) {
const { hopeFear } = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Automation);
if (game.user.isGM ? !hopeFear.gm : !hopeFear.players) return;