[Feature] DR Command Resources (#1572)

* Dr chatcommand and buttons now grant resources via automation by default. Optionally turned off via parameter noResources=true

* .
This commit is contained in:
WBHarry 2026-01-24 11:10:30 +01:00 committed by GitHub
parent 21ef288283
commit cbd268ea1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 16 additions and 6 deletions

View file

@ -261,7 +261,7 @@ export default class DualityRoll extends D20Roll {
}
static async handleTriggers(roll, config) {
if (!config.source?.actor) return;
if (!config.source?.actor || config.skips?.triggers) return;
const updates = [];
const dualityUpdates = await game.system.registeredTriggers.runTrigger(