From 690df4062f6847974e44456a5340140089276644 Mon Sep 17 00:00:00 2001 From: Gambit Date: Mon, 27 May 2024 00:25:11 -0400 Subject: [PATCH] 0.1.51 --- .github/workflows/main.yml | 11 +---------- module.json | 2 +- scripts/helpers.js | 2 +- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9f66da3e..0df94153 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,16 +19,7 @@ jobs: id: set-release-notes-github run: | echo "- General:" >> release_notes.txt - echo " - Helper: Fix token validator not appropriately checking spell level against valid spells." >> release_notes.txt - echo "- Additions:" >> release_notes.txt - echo " - Ashardalons Stride: Covers all aspects and works to suppress opportunity attacks." >> release_notes.txt - echo " - Cloak of Vermin: Automates the Deep Magic Vol 2 spell Cloak of Vermin." >> release_notes.txt - echo " - Drafyns Bane of Excellence: Automates the Deep Magic Vol 2 spell Drafyns Bane of Excellence. Currently only covers the attack roll fully and offers a chat readout for saving throws, if a hook is added in the future to handle this it will be incorporated." >> release_notes.txt - echo " - Dream Shear: Automates the Deep Magic Vol 2 spell Dream Shear." >> release_notes.txt - echo " - Leilochs Interminable Yarn: Automates the Deep Magic Vol 2 spell Leilochs Interminable Yarn." >> release_notes.txt - echo " - Storm Mote: Automates the Deep Magic Vol 2 spell Storm Mote." >> release_notes.txt - echo "- Bugfixes:" >> release_notes.txt - echo " - Enemies Abound: Fixed a bunch of bugs." >> release_notes.txt + echo " - Helper: Actually fix token validator not appropriately checking spell level against valid spells." >> 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 471b2a29..5b77c7f7 100644 --- a/module.json +++ b/module.json @@ -7,7 +7,7 @@ "name": "Gambit" } ], - "version": "0.1.50", + "version": "0.1.51", "compatibility": { "minimum": "11", "verified": "11", diff --git a/scripts/helpers.js b/scripts/helpers.js index 06b293cc..652f6757 100644 --- a/scripts/helpers.js +++ b/scripts/helpers.js @@ -206,7 +206,7 @@ export function findValidTokens({initiatingToken, targetedToken, itemName, itemT // Check if the token has available spell slots/uses if(itemType === "spell") { const spells = t.actor.system.spells; - let spellLevel = t.actor.system.level; + let spellLevel = checkItem?.system?.level; let checkType = checkItem?.system?.preparation?.mode; let hasSpellSlots = false; if(checkType === "prepared" && checkItem?.system?.preparation?.prepared === false) return;