espositos / fvtt-tokenactionhud

Creating a token action HUD module for Foundry VTT
31 stars 38 forks source link

Pathfinder 2e - Using spell slots #288

Closed williamsfl350 closed 3 years ago

williamsfl350 commented 3 years ago

Hi! I believe the small minus box next to the spells is supposed to use that slot, but I can't seem to get it to work. I click the box and it turns red, but the slot is not expended.

I am just assuming that that is what the minus and plus are supposed to do. I haven't been able to find any documentation about that.

Token action hud

Thanks so much!

mothringer commented 3 years ago

Additional info. The following error is thrown in the console when using these buttons.

foundry.js:8754 Uncaught (in promise) Error: You must provide an _id for every object in the update data Array.
    at ClientDatabaseBackend._preUpdateDocumentArray (foundry.js:8754)
    at ClientDatabaseBackend._updateEmbeddedDocuments (foundry.js:8728)
    at ClientDatabaseBackend.update (backend.mjs:153)
    at async Function.updateDocuments (document.mjs:366)
    at async RollHandlerBasePf2e._adjustSpellSlot (pf2e-base.js:238)
    at async RollHandlerBasePf2e._handleUniqueActionsChar (pf2e-base.js:117)
    at async RollHandlerBasePf2e._handleMacros (pf2e-base.js:70)
    at async RollHandlerBasePf2e.doHandleActionEvent (pf2e-base.js:42)
espositos commented 3 years ago

I think this was resolved by Drental's recent patch, but let me know if this issue persists.

williamsfl350 commented 3 years ago

I think this was resolved by Drental's recent patch, but let me know if this issue persists.

Just wanted to say thanks for the work. Looks like it was fixed.