From 5e86b9be238e784b0148613fc14791e7b454b298 Mon Sep 17 00:00:00 2001 From: Gambit Date: Thu, 19 Sep 2024 12:01:39 -0400 Subject: [PATCH] 0.5.47 --- .github/workflows/main.yml | 4 +--- scripts/macros/opportunityAttack.js | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5fe7cc0..3c8e98f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,10 +18,8 @@ jobs: - name: Set Release Notes for Github id: set-release-notes-github run: | - echo "- Additions:" >> release_notes.txt - echo " - Ring Of Invisibility (Damaged Homebrew)" >> release_notes.txt echo "- Bugfixes:" >> release_notes.txt - echo " - Opportunity Attack: Fix turn end error popping up for users due to a missing check to make sure only a regions origin token tries to update it." >> release_notes.txt + echo " - Opportunity Attack: Additional turn end bugfix causing permissions errors" >> release_notes.txt echo "release-notes-github<> $GITHUB_ENV cat release_notes.txt >> $GITHUB_ENV echo "EOF" >> $GITHUB_ENV diff --git a/scripts/macros/opportunityAttack.js b/scripts/macros/opportunityAttack.js index 1d7da08..85e3257 100644 --- a/scripts/macros/opportunityAttack.js +++ b/scripts/macros/opportunityAttack.js @@ -586,6 +586,7 @@ export async function enableOpportunityAttack(combat, combatEvent) { disabled: false, system: { source: ` + if(!game.user.isGM) return; if(event.data.token.uuid !== region.flags["gambits-premades"].tokenUuid) return; let token = await fromUuid(region.flags["gambits-premades"].tokenUuid); let actor = await fromUuid(region.flags["gambits-premades"].actorUuid);