kandashi / midi-srd

MIT License
7 stars 29 forks source link

Spiritual Weapon: FoundryV9-268 #13

Closed Highlander345 closed 2 years ago

Highlander345 commented 2 years ago

Testing different spells on Foundry V9-268, Dnd5e 1.5.7,

Spiritual weapon creates the template and adds the active effect but does not create the macro item for performing the attack. Posting the errors thrown below. First error is thrown when pressing the "Apply active effects" buttons, The second and third are when the template is placed.

MidiSRD-macros.js:2143

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'id') [Detected 3 packages: midi-srd, advanced-macros, dae] at Function.spiritualWeapon (MidiSRD-macros.js:2143:77) at Macro.eval (eval at callScriptMacroFunction (Macros.js:169:10), :5:16) at Macro.callScriptMacroFunction [as callScriptFunction] (Macros.js:172:13) at Macro.renderMacro [as renderContent] (Macros.js:188:16) at Macro.executeMacro (Macros.js:209:23) at daeMacro (dae.js:626:42) at async Semaphore._try (semaphore.mjs:99:17)

foundry.js:297

Foundry VTT | Error thrown in hooked function 'undefined' for hook 'createMeasuredTemplate'

foundry.js:319

TypeError: fn is not a function [No packages detected] at Function._call (foundry.js:294:14) at Function.callAll (foundry.js:253:12) at ClientDatabaseBackend.callback (foundry.js:10099:13) at foundry.js:10069:43 at Array.map () at ClientDatabaseBackend._handleCreateEmbeddedDocuments (foundry.js:10069:33) at ClientDatabaseBackend._createEmbeddedDocuments (foundry.js:9961:17) at async Function.createDocuments (document.mjs:338:21)