Closed OmegaRogue closed 6 months ago
Setup
Describe the bug The Material Deck Spell casting Buttons don't properly, they dont display anything. This is the case only for some tokens, in my testing for some reason Arcane Prepared Spellcasters. Console Log
Uncaught (in promise) TypeError: spellCastingEntry.data.data.slots[("slot" + (intermediate value))].prepared[slot] is undefined [Detected 1 package: MaterialDeck] buildSpellData pf2e.js:474 forEach commons.js:4182 buildSpellData pf2e.js:467 getSpellData pf2e.js:500 getSpells pf2e.js:518 getSpells tokenHelper.js:369 pushData token.js:380 update token.js:18 async* MaterialDeck.js:547 #call foundry.js:730 callAll foundry.js:687 refreshLighting foundry.js:47640 applyRenderFlags foundry.js:50262 #applyRenderFlags foundry.js:27701 emit index.js:89 update index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 _tick index.js:89 pf2e.js:474:82 update token.js:21 AsyncFunctionThrow self-hosted:856 (Async: async) <anonymous> MaterialDeck.js:547 #call foundry.js:730 callAll foundry.js:687 refreshLighting foundry.js:47640 applyRenderFlags foundry.js:50262 #applyRenderFlags foundry.js:27701 emit index.js:89 update index.js:89 _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89 (Async: FrameRequestCallback) _tick index.js:89
Ok, after more testing, the tradition doesn't matter, its just two tokens that it doesn't work for
This should be fixed in the latest version
Setup
Describe the bug The Material Deck Spell casting Buttons don't properly, they dont display anything. This is the case only for some tokens, in my testing for some reason Arcane Prepared Spellcasters. Console Log