Skip to content

Commit

Permalink
sheet render loop fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kandashi committed Jan 21, 2021
1 parent 8702fc9 commit 78fe131
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/aura.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ Hooks.on("ready", () => {
* Hooks onto effect sheet to add aura configuration
*/
Hooks.on("renderActiveEffectConfig", async (sheet, html) => {
await sheet.object.setFlag(`${MODULE_NAME}`, 'aura')
if(!sheet.object.data.flags?.ActiveAuras?.aura) {
await sheet.object.setFlag(`${MODULE_NAME}`, 'aura')
}
const flags = sheet.object.data.flags;

const FormIsAura = game.i18n.format("ACTIVEAURAS.FORM_IsAura");
Expand Down

0 comments on commit 78fe131

Please sign in to comment.