Feu-Secret / Tokenmagic

A Foundry VTT module that allows you to add animations and graphic effects to tokens, tiles, templates and drawings.
GNU General Public License v3.0
51 stars 36 forks source link

[BUG] Applied FX stacking when reapplied after changing tile image #221

Closed Crowguard closed 1 year ago

Crowguard commented 1 year ago

Module Version: v0.6.1.2

Describe the bug Tokenmagic FX applied to a tile are reapplied in addition to the existing effect when a tile's image is changed.

To Reproduce Steps to reproduce the behavior:

  1. Create Tile & give it an image
  2. Apply FX. I'm using Drop Shadow in the example.
  3. Change tile's image several times.
  4. See error

Expected behavior The FX effect is only applied once and doesn't keep stacking up.

Screenshots

https://user-images.githubusercontent.com/99844555/194188375-23f06273-39ac-47cc-a2dc-f5a031fe3765.mp4

Here's a much faster & more drastic one; I did have Monk's Active Tile Triggers active for this one just make changing the image faster.

https://user-images.githubusercontent.com/99844555/194189258-8407a083-6850-4035-8fe4-a70a9f8cf2a0.mp4

Below are the only messages on the console that occur during this.

image

Browser:

Foundry Version: 10.286

Game System: D&D 5e 2.0.3

Additional context image