giffyglyph / foundry-5e-monster-maker

A D&D 5e monster maker module for the Foundry VTT. Build new monsters with level-appropriate, balanced stats in seconds.
30 stars 17 forks source link

The items in the monster-powers and monster-attacks compediums fail to load #58

Open Venron opened 2 years ago

Venron commented 2 years ago

From what I can see the items in the compendiums fail to load when clicked on, because they are attempting to run through the 5e simplifyRollFormula function. This function attempts to validate the roll formula by passing the formula into the Roll function, as there is no monster attached to the items in the compendium it throws a type exception. This is new functionality added with the most recent version of the 5e system see merge requests !432 Release 1.5.0,!428 in the 5e repo.

ra2phoenix commented 2 years ago

I solved this locally by editing scripts/classes/GmmItem.js and removing all instances of ,rollData in simplifyRollFormula calls. It was affecting things in a monster too and I couldn't open it any longer.