Rughalt / D35E

3.5e SRD implementation for Foundry VTT.
https://legaciesofthedragon.com
GNU General Public License v3.0
37 stars 30 forks source link

Bug: Can´t use some spells from the inside a magic item #807

Closed irbian closed 2 years ago

irbian commented 2 years ago

I added call lightning 1/day and blasphemy 1/day as spells to a magic item

I can use the first one, but the second one, launch this error:

foundry.js:8850 Uncaught (in promise) Error: You must provide an _id for every object in the update data Array.
[Detected 1 package: system:D35E]
    at BabeleClientDatabaseBackend._preUpdateDocumentArray (foundry.js:8850)
    at BabeleClientDatabaseBackend._updateDocuments (foundry.js:8794)
    at BabeleClientDatabaseBackend.update (backend.mjs:154)
    at async Function.updateDocuments (document.mjs:366)
    at async ItemPF.update (document.mjs:448)
    at async ItemPF.update (entity.js:642)
    at async ItemPF.addCharges (entity.js:248)
    at async ItemPF.use (entity.js:1249)
    at async ItemPF.useEnhancementItem (entity.js:3991)
    at async ActorSheetPFNPC._quickItemEnhActionControl (base.js:1290)
_preUpdateDocumentArray @ foundry.js:8850
_updateDocuments @ foundry.js:8794
update @ backend.mjs:154
async function (async)
_quickItemEnhActionControl @ base.js:1290
(anonymous) @ base.js:1268
dispatch @ jquery.min.js:2
v.handle @ jquery.min.js:2
github-actions[bot] commented 2 years ago

Thanks for opening an issue, traveller! If your issue is related to an actor or an item, sending thing that is broken will help a lot and speed up debugging.

How to send an item? > - If item is owned by a character, drag and drop it to world item list. > - Right click on item in browser item list and click export. > - Attach downloaded item to this ticket. How to send an actor? > - Right click on actor in browser actor list and click export. > - Attach downloaded actor to this ticket.

Rughalt commented 2 years ago

This should be fixed as part of #794