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] - filter('Glow') seems broken under v11 #168

Closed n0q closed 1 year ago

n0q commented 1 year ago

Describe the bug Glow seems to generate a type error under Foundry v11. I've got the below script (and numerous iterations thereof) working fine under v10. Under v11, they only work if I comment out the filter() call.

To Reproduce Create the following script macro, select a token, and then execute the macro. Note that any art asset will do, here.

const assetName = 'jb2a.energy_wall.01.circle';

const glowData = {
    distance:                              5,
    outerStrength:                         2,
    innerStrength:                         1,
    color:            Color.from('0xff00ff'),
    quality:                             0.5,
    knockout:                          false,
}

new Sequence()
    .effect()
        .file(assetName)
        .attachTo(token)
        .filter('Glow', glowData)
    .play();

Expected behavior Art asset should appear, attached to selected token with a purple glow. Instead, the macro generates an error in the console, and terminates.

Screenshots image

Setup:

Active modules:

Additional context Add any other context about the problem here.

Haxxer commented 1 year ago

Fixed in 3.0.9