theripper93 / Levels

24 stars 13 forks source link

"Hearing" detection mode don't working with Levels module #128

Closed Eserg14BB closed 1 year ago

Eserg14BB commented 1 year ago

I have disabled all other modules: True Module(s) Levels Conflicting Module(s) Levels Foundry and System version Foundry 10.291 | Pathfinder Second Edition 4.10.1+ OS, Hosting, Browser (if applicable) Windows, self-hosting, Short description of bug Hearing detection mode don't working with activated Levels module Simple steps to reproduce the bug

  1. Open token settings
  2. Set darkness on scene or lesser vision angle (175)
  3. Set "Hearing" detection mode on distance 500 ft
  4. Check that it works without the "Levels" module
  5. Activate Levels module
  6. It stops working

Video - https://youtu.be/esyyYteGYhw Screenshots and/or Console Errors Uncaught (in promise) TypeError: undefined. Cannot read properties of undefined (reading 'flags') [Detected 1 package: wall-height] at migrateTokenHeightInScene (modules/wall-height/scripts/utils.js:135) at migrateTokenHeight (modules/wall-height/scripts/utils.js:112) at WallHeightUtils.migrateTokenHeight (modules/wall-height/scripts/patches.js:144) at Object.fn (modules/wall-height/scripts/wall-height.js:32) at Function.#call (foundry.js:724) at Function.callAll (foundry.js:681) at Game.setupGame (foundry.js:7952) at async Game._initializeGameView (foundry.js:8999) at async Game.initialize (foundry.js:7825)

theripper93 commented 1 year ago

Fixed