From 0614583946f0f228853df1e07e9bd067278cc852 Mon Sep 17 00:00:00 2001 From: kandashi Date: Mon, 18 Jan 2021 01:29:35 +0000 Subject: [PATCH] gm update --- module.json | 2 +- src/aura.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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)