Skip to content

Commit

Permalink
[BUG] Item-embedded Active Effects can't reference Actor properties. (#…
Browse files Browse the repository at this point in the history
…1155)

[BUG] Item-embedded AEs can't reference Actor properties.
Fixes #1127
  • Loading branch information
taMiF committed Feb 18, 2024
1 parent cca6de6 commit 8ae0cfb
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/module/effect/autoinline/AutocompleteInlineHooksFlow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,17 @@ export const AutocompleteInlineHooksFlow = {
const effect = EffectConfig.object;
if (!effect.parent) return {};

return effect.parent;
// Autocomplete inline properties module doesn't support get-er properties.
// For this reason we have to manually convert those nested objects we want provide.
const values = effect.parent.toObject();

if (effect.parent.parent) {
values['actor'] = effect.parent.parent.toObject();
}

console.error('parent', effect.parent)
console.error('values', values);
return values;
},

/**
Expand Down

0 comments on commit 8ae0cfb

Please sign in to comment.