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
41 stars 19 forks source link

[BUG] - belowTiles seems to be broken #200

Closed RHeynsZa closed 1 month ago

RHeynsZa commented 11 months ago

Describe the bug Possibly in conjunction with other settings, but when I use .belowTiles(), my animation disappears.

Example script here:

// Get the id of the token calling his function
const source = arguments[0].tile;
const tokenId = Tagger.getTags(source)[0].split('-').pop();

const destId = args[0];
const [dest] = await Tagger.getByTag(`energy-wall-activate-${destId }`);

const laserStr = "jb2a.wall_of_force.vertical.purple";

new Sequence()
    .effect()
        .attachTo(source)
        .stretchTo(dest, { onlyX: true, attachTo: true })
        .file(laserStr)
        .fadeIn(500)
        .fadeOut(500)
        .belowTiles() // <--------- Issue here
        .name(`energy-wall-connect-animation-${tokenId}`)
        .persist()
    .play();

To Reproduce Steps to reproduce the behavior:

  1. Run script on top, fails to render
  2. Remove belowTiles
  3. Run again
  4. Now it works

Expected behavior I dont have any other tiles in the area, so there is no elevation or hiding behind. I just dont see the animation. It is there however

Screenshots With belowTiles: image

Without belowTiles image

Setup:

Active modules:

Additional context Add any other context about the problem here.

Haxxer commented 1 month ago

This should be fixed in v12 on 3.2.6