diff --git a/module.json b/module.json index 5207171..db039fc 100644 --- a/module.json +++ b/module.json @@ -97,7 +97,7 @@ "type": "system", "compatibility": { "minimum": "6.6.2", - "verified": "6.7.0" + "verified": "6.8.0" } } ], @@ -107,7 +107,7 @@ "type": "module", "compatibility": { "minimum": "2.0.7", - "verified": "2.0.8", + "verified": "2.0.10", "maximum": "2.0.99" } } diff --git a/scripts/action-handler.js b/scripts/action-handler.js index f6ae699..f71efd6 100644 --- a/scripts/action-handler.js +++ b/scripts/action-handler.js @@ -1271,7 +1271,7 @@ Hooks.once('tokenActionHudCoreApiReady', async (coreModule) => { // Add spell slot info to group this.addGroupInfo(bookGroupData) - const spellInfo = await (spellcastingEntry[1].getSpellData ? spellcastingEntry[1].getSpellData() : spellcastingEntry[1].getSheetData()) + const spellInfo = await spellcastingEntry[1].getSheetData() const activeLevels = spellInfo.groups.filter(level => level.active.length > 0) for (const level of Object.entries(activeLevels)) {