diff --git a/src/lib/AAHelpers.mjs b/src/lib/AAHelpers.mjs index 8dc5a26..567bdc9 100644 --- a/src/lib/AAHelpers.mjs +++ b/src/lib/AAHelpers.mjs @@ -12,6 +12,7 @@ export class AAHelpers { const system = token.actor?.system; // eslint-disable-next-line no-unused-vars const rollData = token.actor?.getRollData(); + // console.warn("custom check", { token, check, actor, system, rollData }); const result = Boolean(eval(check)); return result; } catch (e) { diff --git a/src/lib/AAHooks.mjs b/src/lib/AAHooks.mjs index 9c33f52..0b14057 100644 --- a/src/lib/AAHooks.mjs +++ b/src/lib/AAHooks.mjs @@ -245,13 +245,14 @@ export function deleteWallHook() { debouncedCollate(canvas.scene.id, true, false, "Wall Deleted"); } -export function updateMeasuredTemplateHook(data, update) { +export function updateMeasuredTemplateHook(data, _update, _options) { if (canvas.scene === null) { Logger.debug("Active Auras disabled due to no canvas"); return; } if (!getProperty(data, "flags.ActiveAuras")) return; - ActiveAuras.MainAura(undefined, "template movement", data.parent.id); + // ActiveAuras.MainAura(undefined, "template movement", data.parent.id); + debouncedCollate(canvas.scene.id, true, true, "updateMeasuredTemplateHook"); } export function deleteMeasuredTemplateHook(doc){