From 1cf5ddc4350e98189840d462d3e6545f3594b0c0 Mon Sep 17 00:00:00 2001 From: charles Date: Sun, 24 Dec 2023 22:04:53 -0600 Subject: [PATCH 1/3] Pack check fails if data.creatures isnt an array. --- src/summon/menu/SummoningMenu.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/summon/menu/SummoningMenu.svelte b/src/summon/menu/SummoningMenu.svelte index b10ad1a..ee295be 100644 --- a/src/summon/menu/SummoningMenu.svelte +++ b/src/summon/menu/SummoningMenu.svelte @@ -43,7 +43,7 @@ data.creatures = loadPacks(); } else if (data.creatures instanceof CompendiumCollection) { data.creatures = loadPacks(false, false, [data.creatures.metadata]); - } else if (data.creatures.some((pack) => pack instanceof CompendiumCollection)) { + } else if (data.creatures.some && data.creatures.some((pack) => pack instanceof CompendiumCollection)) { data.creatures = new Promise((resolveOuter) => { data.creatures = data.creatures.map(async (pack) => { if (pack instanceof CompendiumCollection) { From 1e48bed206597ab48e50fe1dd16a99f297e5a02a Mon Sep 17 00:00:00 2001 From: MrVauxs Date: Mon, 25 Dec 2023 06:07:54 +0100 Subject: [PATCH 2/3] Update SummoningMenu.svelte --- src/summon/menu/SummoningMenu.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/summon/menu/SummoningMenu.svelte b/src/summon/menu/SummoningMenu.svelte index ee295be..bcd6a1f 100644 --- a/src/summon/menu/SummoningMenu.svelte +++ b/src/summon/menu/SummoningMenu.svelte @@ -43,7 +43,7 @@ data.creatures = loadPacks(); } else if (data.creatures instanceof CompendiumCollection) { data.creatures = loadPacks(false, false, [data.creatures.metadata]); - } else if (data.creatures.some && data.creatures.some((pack) => pack instanceof CompendiumCollection)) { + } else if (Array.isArray(data.creatures) && data.creatures.some((pack) => pack instanceof CompendiumCollection)) { data.creatures = new Promise((resolveOuter) => { data.creatures = data.creatures.map(async (pack) => { if (pack instanceof CompendiumCollection) { From 1f4c29938441b10fdda7ff2f3fe9608c0d925a64 Mon Sep 17 00:00:00 2001 From: MrVauxs Date: Tue, 26 Dec 2023 20:25:12 +0100 Subject: [PATCH 3/3] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ae47754..dd7862f 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,8 @@ An all-in-one solution to all your summoning needs with NO need to import Actors Easily expandable with Hooks, and system-inclusive. Should work on any system. Just grab the **macro** from the compendium and start summoning! +### **If you want more information, see the [wiki](https://github.com/MrVauxs/foundry-summons/wiki/Macro-Arguments)!** + Built in [Svelte](https://svelte.dev/) using [TyphonJS Framework](https://github.com/typhonjs-fvtt-lib) for Foundry. ### Hooks