reonZ / pf2e-dailies

5 stars 8 forks source link

Bug when preparing a stave #47

Closed TiloBuechsenschuss closed 7 months ago

TiloBuechsenschuss commented 7 months ago

We've recently rebuilt our party's witch. Now they can't prepare a staff. They always get the following error:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'system')
    at returnedEntry (spellcasting.js:206:53)
    at getBestSpellcastingEntry (spellcasting.js:230:9)
    at getBestSpellcastingEntryForStaves (staves.js:121:20)
    at je.processData (process.js:202:23)
    at async #c (interface.js:506:3)

Other casters still can prepare, so maybe it's only this actor?

fvtt-Actor-boreas-hellborus-FRJfb8OoOb8Qn5Jg.json

reonZ commented 7 months ago

Both your prepared spellcasting entries were empty, this it what caused the crash, i made sure it won't happen anymore.

Your staff is a pre-remaster one and has a spell that no longer exist in the system, this would have crashed the daily preparation as well, and i also made sure this will not be the case after this patch.

TiloBuechsenschuss commented 7 months ago

Great, thanks a bunch. :-)