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] - Sequencer Database paths throwing errors #185

Closed otigon closed 1 year ago

otigon commented 1 year ago

Describe the bug Depending on the database structure, the Sequencer database paths can sometimes throw errors

To Reproduce

  1. Make sure Automated Animations is active to use the following macros This macro works when using a database path that goes all the way to the Color.
    let tactor = canvas.tokens.controlled[0];
    let targets = game.user.targets.first();
    new Sequence()
    .effect()
    .file("autoanimations.range.weapon.lasershot.01.blue")
    .atLocation(tactor)
    .stretchTo(targets)
    .play()

    Attempting to randomize the colors using the database path throws an error.

    let tactor = canvas.tokens.controlled[0];
    let targets = game.user.targets.first();
    new Sequence()
    .effect()
    .file("autoanimations.range.weapon.lasershot.01")
    .atLocation(tactor)
    .stretchTo(targets)
    .play()

    throws this error: image

Expected behavior The "error" type macro would choose a random color, then the correct range. This has worked in the past, so I'm not sure what version of Sequencer this started

Setup:

Active modules:

Haxxer commented 1 year ago

Fixed in 3.0.14