jopeek / fvtt-loot-sheet-npc-5e

FVTT - Loot Sheet NPC 5E
MIT License
44 stars 85 forks source link

Error rolling on arcane shop table #353

Closed rastered26 closed 2 years ago

rastered26 commented 2 years ago

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:

  1. Got to merchant sheet
  2. Select Arcane shop
  3. Click in update button and eventually get the error in console

Desktop (please complete the following information):

rastered26 commented 2 years ago

An update: I tink i solve the issue modifying two files, but the scrolls are added as a feat, i down know if this should be correct?

image