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] - basic "Linked Effect between tokens" macros now returns "unhandled Rejection" in version 3.0.0 #161

Closed Cakeisgreater closed 1 year ago

Cakeisgreater commented 1 year ago

Describe the bug Link effect macros described here that worked in 2.414 no longer work in 3.0.0.

To Reproduce try executing a macro like:

const target = game.user.targets.first();
if(Sequencer.EffectManager.getEffects({name: "rope", object: token}).length > 0) return Sequencer.EffectManager.endEffects({name: "rope", object: token});
new Sequence()
    .effect()
    .name("rope")    
    .file("jb2a.energy_beam.normal.blue.01")
    .attachTo(token)
    .stretchTo(target, { attachTo: true})
    .persist()
.play()

in the latest version (3.0.0). No effects occur and an error is printed in the log.

Expected behavior A link effect is created from selected token to target, and persists until cancelled.

Setup:

Modules Got JB2A and related prerequisites installed.