PwQt / magic-items-2

This module for Foundry VTT and specific for the DnD5e system, adds the ability to create magical items with spells or feats that belong to the item itself, such as staffs or magic wands, which will be automatically inherited from the character who owns the item.
https://github.com/PwQt/magic-items-2
MIT License
18 stars 7 forks source link

An error appears in console when I create an item/feature/passive item in a NPC #89

Closed YenBenGrey closed 6 months ago

YenBenGrey commented 6 months ago

Module Version: v1.7.1

Before open any issue

1) Enable the module setting "Enable debugging" 2) Click F12 go to the console tab 3) make the test you want and replicate the error 4) Go to the tab console open on point 2) and just right click and click 'Save as' and 'Save' or send a screenshot of the exception on the console. 5) Attach the text file on the github issue with all the logs related tot he module, or send a screenshot of the messages on the console.

Describe the bug When I open a NPC character sheet (any) and add a feature or item or weapon to that actor, the attached error happens. Currently I have no idea what impact this has on my game or world I am just sending feedback. I am on all the latest versions of MidiQol, DAE, CPR, Dfreds CE.

To Reproduce Steps to reproduce the behavior:

  1. Go to NPC character sheet in sidebar
  2. Click on add in the Features tab
  3. That is it, go to console
  4. See error

Expected behavior No error

Screenshots If applicable, add screenshots to help explain your problem.

Browser: Chrome

Foundry Version: 11.315 Game System: DND5e V3.0.4

image
PwQt commented 6 months ago

That is most likely due to non-transferred magic-items-2 flag.

Will try and fix that for 4.0 release