shemetz / roll-from-compendium

FoundryVTT module that adds easy buttons to post things to chat.
MIT License
5 stars 2 forks source link

PF2E spell attack and damage fail when rolled using the module #23

Closed shemetz closed 3 months ago

shemetz commented 11 months ago

These have been failing recently (as of v5.9.0), due to some problem with damage.kinds:

foundry.js:753 TypeError: Failed data preparation for Actor.tcUAvJHcKGi8TBBl.Item.G13AidYNtUCIz8lc. object is not iterable (cannot read property Symbol(Symbol.iterator)) at new Set () at _SpellPF2e2.prepareBaseData (pf2e.mjs:306:94283) at _SpellPF2e2.prepareData (foundry.js:14209:12)

TypeError: d.kinds.has is not a function at pf2e.mjs:306:96139 at Array.some () at _SpellPF2e2.getRollOptions (pf2e.mjs:306:96123) at _CharacterPF2e.getRollContext (pf2e.mjs:306:156212)

I tried to debug and fix it but I got stuck. The code changes that led to it seem very recent (3 days ago). Here's hoping this gets fixed without my needing to do anything :(

shemetz commented 3 months ago

Fixed in v1.7.3