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

thenDo broken #104

Closed orcnog closed 2 years ago

orcnog commented 2 years ago

In v10, I'm trying to execute a .thenDo() in a macro, and i'm getting the following in the console: image

"thenDo is not a function"

Am I using this wrong?

let sequence = new Sequence()
    .effect()
        .file("jb2a.maul.melee.fire.red")
        .atLocation(canvas.tokens.controlled[0])
        .stretchTo(target)
        .waitUntilFinished(-1100)
    .effect()
        .file("jb2a.impact.ground_crack.orange")
        .atLocation(target)
        .scale(0.5)
        .belowTokens()
    .play()
    .thenDo(function () {
        BloodSplatter.socketSplat(game.user.targets);
     });
Haxxer commented 2 years ago

You put play last, always.