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] - `.template()` doesnt override Database templates #263

Closed MrVauxs closed 3 months ago

MrVauxs commented 3 months ago

Describe the bug As the title says, putting .template(data) in a Sequence does not override the template defined by the Sequencer Database of a given database path.

To Reproduce

new Sequence()
    .effect() // Uses Sequencer database. Is not affected by template.
    .file("jb2a.melee_generic.bludgeoning.one_handed")
    .attachTo(token)
    .rotateTowards(game.user.targets.first())
    .template({
        "gridSize": 200,
        "startPoint": 150,
        "endPoint": 200
    })
    .effect() // Does not use Sequencer database. Affected by template.
    .file("modules/jb2a_patreon/Library/Generic/Weapon_Attacks/Melee/DmgBludgeoning_01_Regular_Yellow_1Handed_800x600.webm")
    .attachTo(token)
    .rotateTowards(game.user.targets.first())
    .template({
        "gridSize": 200,
        "startPoint": 150,
        "endPoint": 200
    })
    .play()

Expected behavior The function overrides the more generic template.

Haxxer commented 3 months ago

Fixed in 3.2.11