From 77f95e9805776bdeb112684cce8da11ae579bca5 Mon Sep 17 00:00:00 2001 From: Gambit Date: Sat, 1 Jun 2024 23:20:35 -0400 Subject: [PATCH] 0.1.56 --- .github/workflows/main.yml | 2 +- module.json | 2 +- scripts/module.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3cb05eb6..470cb70f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,7 +19,7 @@ jobs: id: set-release-notes-github run: | echo "- General:" >> release_notes.txt - echo " - Template Attachment: Added native ability to attach templates to a token, Token Attacher is no longer a requirement for Opportunity Attacks." >> release_notes.txt + echo " - Template Attachment: Small bugfix for combat active check." >> release_notes.txt echo "release-notes-github<> $GITHUB_ENV cat release_notes.txt >> $GITHUB_ENV echo "EOF" >> $GITHUB_ENV diff --git a/module.json b/module.json index 56f8d7ed..c63cf740 100644 --- a/module.json +++ b/module.json @@ -7,7 +7,7 @@ "name": "Gambit" } ], - "version": "0.1.55", + "version": "0.1.56", "compatibility": { "minimum": "11", "verified": "11", diff --git a/scripts/module.js b/scripts/module.js index 7ead559a..8cf64469 100644 --- a/scripts/module.js +++ b/scripts/module.js @@ -302,7 +302,7 @@ function updateTemplatePosition(tokenDocument) { Hooks.on('updateToken', (tokenDocument, updateData, options, userId) => { - if(!game.combat.active) return; + if(!game.combat) return; const tokenId = tokenDocument.actor.getFlag('gambits-premades', 'tokenAttachedTemplate'); if (tokenId && tokenDocument.id === tokenId) { updateTemplatePosition(tokenDocument);