Skip to content

Commit

Permalink
Template updates not triggering aura collation correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPrimate committed Jan 9, 2024
1 parent 3acd534 commit 1888b59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/lib/AAHelpers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
5 changes: 3 additions & 2 deletions src/lib/AAHooks.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 1888b59

Please sign in to comment.