diff --git a/module.json b/module.json index bac14b4..ecb2efc 100644 --- a/module.json +++ b/module.json @@ -3,7 +3,7 @@ "title": "Active-Auras", "description": "Active-Auras", "author": "Kandashi", - "version": "0.1.23", + "version": "0.1.24", "minimumCoreVersion": "0.7.5", "compatibleCoreVersion": "0.7.9", "packs": [ diff --git a/src/aura.js b/src/aura.js index 83b4baf..0595bfe 100644 --- a/src/aura.js +++ b/src/aura.js @@ -229,7 +229,9 @@ Hooks.on("ready", () => { * Locate all auras on the canvas, create map of tokens to update, update tokens */ function MainAura(movedToken) { - + let gm = game.user === game.users.find((u) => u.isGM && u.active) + if (!gm) return; + let map = new Map(); UpdateAllTokens(map, canvas.tokens.placeables)