MrVauxs / pf2e-jb2a-macros

Discord: @vauxs
GNU General Public License v3.0
11 stars 27 forks source link

NPC spells not working #18

Closed ILikeCoolThings closed 2 years ago

ILikeCoolThings commented 2 years ago

Whenever a NPC casts a spell that has an AA entry, the below error is put into the console and no animation is played. This error can be repeated with a Water Mephit by casting Acid Arrow.

Just to add... melee attacks and equipment work just fine. Seems like it is spells only


foundry.js:319 TypeError: Cannot read properties of undefined (reading 'runJB2Apf2eMacro')
[Detected 2 packages: pf2e-jb2a-macros, system:pf2e]
    at module.js:198
    at Function._call (foundry.js:294)
    at Function.call (foundry.js:279)
    at ClientDatabaseBackend._preCreateDocumentArray (foundry.js:10013)
    at async ClientDatabaseBackend._createDocuments (foundry.js:9930)
    at async Function.createDocuments (document.mjs:338)
    at async Function.create (document.mjs:439)
    at async SpellcastingEntryPF2e.cast (main.bundle.js:1)
MrVauxs commented 2 years ago

Fixed in 1.10.5

ILikeCoolThings commented 2 years ago

It looks like that they are still broken... Both PCs and NPCs. This is the console error:


foundry.js:319 TypeError: Cannot read properties of undefined (reading 'pf2eJB2AMacros')
[Detected 3 packages: pf2e-jb2a-macros, system:pf2e, token-action-hud]
    at module.js:198
    at Function._call (foundry.js:294)
    at Function.call (foundry.js:279)
    at ClientDatabaseBackend._preCreateDocumentArray (foundry.js:10013)
    at async ClientDatabaseBackend._createDocuments (foundry.js:9930)
    at async Function.createDocuments (document.mjs:338)
    at async Function.create (document.mjs:439)
    at async SpellcastingEntryPF2e.cast (main.bundle.js:1)
    at async RollHandlerBasePf2e._rollSpell (bundle.min.js:1)
    at async RollHandlerBasePf2e._handleMacros (bundle.min.js:1)
    at async RollHandlerBasePf2e.doHandleActionEvent (bundle.min.js:1)
MrVauxs commented 2 years ago

Disable debugging if you have it enabled. I'll look into it when I have free time (read: 2 days).

niedz., 4 wrz 2022, 02:41 użytkownik MotherOfGod @.***> napisał:

It looks like that they are still broken... Both PCs and NPCs. This is the console error:

foundry.js:319 TypeError: Cannot read properties of undefined (reading 'pf2eJB2AMacros')[Detected 3 packages: pf2e-jb2a-macros, system:pf2e, token-action-hud] at module.js:198 at Function._call (foundry.js:294) at Function.call (foundry.js:279) at ClientDatabaseBackend._preCreateDocumentArray (foundry.js:10013) at async ClientDatabaseBackend._createDocuments (foundry.js:9930) at async Function.createDocuments (document.mjs:338) at async Function.create (document.mjs:439) at async SpellcastingEntryPF2e.cast (main.bundle.js:1) at async RollHandlerBasePf2e._rollSpell (bundle.min.js:1) at async RollHandlerBasePf2e._handleMacros (bundle.min.js:1) at async RollHandlerBasePf2e.doHandleActionEvent (bundle.min.js:1)

— Reply to this email directly, view it on GitHub https://github.com/MrVauxs/pf2e-jb2a-macros/issues/18#issuecomment-1236224301, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHUOGHCNM7V3QFOFXTV336LV4PV3TANCNFSM6AAAAAAQEBR35I . You are receiving this because you modified the open/close state.Message ID: @.***>

ILikeCoolThings commented 2 years ago

Not a problem, take your time.

And debugging is disabled.