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 25 forks source link

[BUG] - Crosshair persist does not provide the spawned template to rest of Sequence #325

Closed MrVauxs closed 1 week ago

MrVauxs commented 2 weeks ago

Describe the bug When using crosshairs, you'd want to create a template using that crosshairs location and then reference that template in further effects. Problem is, the name of the crosshair does not return the created template for effects to attachTo, but what I assume to be the plain X,Y coordinates.

To Reproduce

new Sequence()
  .crosshair("test")
    .distance(2.5)
    .location(_token, { limitMaxRange: 15 })
    .persist()
  .effect()
    .attachTo("test")
    .scaleToObject()
    .persist()
    .file("jb2a.portals.horizontal.ring")
  .play()

Then move the template. You will also see a warning that attachTo couldnt attach and defaulted to atLocation.

chrome_aXJH95PuR1.webm

Haxxer commented 1 week ago

Fixed in 3.3.4