Feu-Secret/Tokenmagic

[BUG] Incompatible with Automated Animations

Opened this issue · 0 comments

Module Version: v0.69

Describe the bug
When both modules are enabled, Tokenmagic logs an error in the console and does not load.

To Reproduce
Steps to reproduce the behavior:

  1. Enable both Token Magic FX and Automated Animations
  2. Refresh page

Expected behavior
Token Magic FX should load properly

Console error

FilterDistortion.js:5 Uncaught TypeError: undefined. Class extends value undefined is not a constructor or null
[Detected 1 package: tokenmagic]
    at FilterDistortion.js:5:52
(anonymous)	@	FilterDistortion.js:5

Browser:

  • Electron

Foundry Version:
12.331

Game System:
D&D 5e 4.0.4

Additional context
Error is thrown on line FilterDistortion extends PIXI.filters.DisplacementFilter. When the module loads by itself a deprecation warning is thrown stating PIXI.filters.DisplacementFilter has been moved to PIXI.DisplacementFilter. Perhaps this is the fix?