Closed FeistyMango closed 1 year ago
Here is my proposed fix to add intergration support that would fix the root issue that causes this bug to manifest. The real issue is that Stat Blocks imported from DND Beyond represent features and melee skills/abilities as Items. Since these items do not include prices, it throws an exception as described above. I added logic to filter them out completely from the loot tables since they are not appropriate to even see on a loot table.
See PR: https://github.com/jopeek/fvtt-loot-sheet-npc-5e/pull/389
Describe the bug There appears to be an incompatibility issue when both these modules are included. My guess based on where the exception is thrown, the MonsterBlocks module (which allows you to open monster sheets), does not have some of the predicted/expected property values and so it throws an exception since it wasn't coded to have a safe guard in that situation. It appears that the monster sheet contains abilities/features that are represented as items, and when the
getData()
is being invoked when the sheet is being opened, it makes the assumption that all items have a price or value.Here is the ability the creature has that causes the exception:
Line of code that throws the error:
let priceInGp = item.data.data.price.value;
To Reproduce Steps to reproduce the behavior:
Expected behavior Should be able to open the monster/creature sheet
Screenshots![image](https://user-images.githubusercontent.com/3461388/218246923-6524003d-17c0-47bc-a980-2bad1a921ee0.png)
Desktop (please complete the following information):