Describe the bug
Try to add some scrolls to the merchant and get the next error.
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'filter')
[Detected 1 package: lootsheetnpc5e]
at LootProcessor._getRandomSpell (LootProcessor.js:448)
at LootProcessor.createScrollFromSpell (LootProcessor.js:499)
at LootProcessor.preItemCreationDataManipulation (LootProcessor.js:432)
at LootProcessor.buildItemData (LootProcessor.js:88)
at async LootProcessor._addLootItem (LootProcessor.js:271)
at async LootProcessor.addItemsToActor (LootProcessor.js:420)
To Reproduce
Steps to reproduce the behavior:
Got to merchant sheet
Select Arcane shop
Click in update button and eventually get the error in console
Desktop (please complete the following information):
Describe the bug Try to add some scrolls to the merchant and get the next error.
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'filter') [Detected 1 package: lootsheetnpc5e] at LootProcessor._getRandomSpell (LootProcessor.js:448) at LootProcessor.createScrollFromSpell (LootProcessor.js:499) at LootProcessor.preItemCreationDataManipulation (LootProcessor.js:432) at LootProcessor.buildItemData (LootProcessor.js:88) at async LootProcessor._addLootItem (LootProcessor.js:271) at async LootProcessor.addItemsToActor (LootProcessor.js:420)
To Reproduce Steps to reproduce the behavior:
Desktop (please complete the following information):