Skip to content

Commit

Permalink
Merge pull request #40 from kandashi/0.1.24
Browse files Browse the repository at this point in the history
gm update
  • Loading branch information
kandashi authored Jan 18, 2021
2 parents d4e7112 + 0614583 commit 004c9c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
4 changes: 3 additions & 1 deletion src/aura.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 004c9c1

Please sign in to comment.