arbron / fvtt-summoner

Easy to use interface for configuring and summoning actors within DnD5e.
MIT License
4 stars 4 forks source link

[BUG] Summon from Compendium #41

Closed ZeroXNoxus closed 4 months ago

ZeroXNoxus commented 11 months ago

Describe the bug Summoning from a Compendium is not possible. There is a console log, reading: Cannot read properties of null (reading 'clone') | summons-actor.mjs:111

To Reproduce Steps to reproduce the behavior:

  1. Add an Actor from a Compendium to a spell as summon
  2. Cast spell from Spellcasting Character
  3. Choose that summon and cast the spell

Expected behavior Summoning from a Compendium should be possible to keep Actor Directory clean.

Environment:

Additional context Add any other context about the problem here.

maxobremer commented 10 months ago

This is an issue with warpgate as mentioned in #11 and this issue is a copy of #15 (though maybe stuff has changed since then, I don't know)

Though maybe a possibility would be to have the module check if the linked actor is from a compendium -If it is, check a folder named Arbron's Summon (or with any other prespecified name) --if that folder doesn't have an actor there with the same name, import the actor there and summon the imported actor --if it does have an actor with the same name, summon that one

Just a thought though, up to Arbron or whoever has time and skill to fix this.