fantasycalendar / FoundryVTT-Sequencer

This module implements a basic pipeline that can be used for managing the flow of a set of functions, effects, sounds, and macros.
Other
47 stars 24 forks source link

[BUG] Foundry V12 - Macro Error - Foundry Summons #222

Closed nlblunt closed 3 months ago

nlblunt commented 3 months ago

While using Foundry Summons in Pathfinder 2e, the summons no longer works. Looking at console, it is giving the following error.

TypeError: Cannot read properties of undefined (reading 'OWNER') at Proxy. (sequencer.js:183:72) at async Proxy.run (func.js:23:5) at async Proxy._execute (func.js:31:5) at async Proxy.play (sequencer.js:67:23)

Looking into it, it seems the following is the culprit perhaps? macro.ownership.default = CONST.DOCUMENT_PERMISSION_LEVELS.OWNER; OWNER undefined

DOCUMENT_PERMISSION_LEVELS was depreciated and removed in V12.

Haxxer commented 3 months ago

Fixed with 3.2.0