Skip to content
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.

Shield is disabled at the beginning of the next round #6

Closed
Rencos1 opened this issue Jan 29, 2021 · 2 comments
Closed

Shield is disabled at the beginning of the next round #6

Rencos1 opened this issue Jan 29, 2021 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@Rencos1
Copy link

Rencos1 commented Jan 29, 2021

Shield should be disabled at the beginning of you next turn, not at the beginning of the next round.
A little change can fix this issue in effects.js
Combat utility belt will not update the effect on the token if a duration is not set when the effect is created. Must be greater or equal to 0.2 to be sure that turnStart is triggerered first.

static shield() { 
        return {
            name: "Shield",
            label: "Toggled Effect: Shield",
            icon: "modules/ThandulsTogglableBuffsAndEffects/media/shield.jpg",
            duration: getDurationData(1), 
            flags: {
                dae: {
                    specialDuration: ["turnStart"]
                }
            },
            changes: [
                {key: "data.attributes.ac.value", mode: 2, value: "5"},
              ],
        };
    }
@kszczepanskidev
Copy link
Owner

My initial plan was to not use DAE module, but base effects have way to many restrictions as you can see. I'll be updating all connected effects to DAE module assist if needed

@kszczepanskidev kszczepanskidev added the enhancement New feature or request label Jan 29, 2021
@kszczepanskidev kszczepanskidev added this to the 1.2.5 milestone Jan 29, 2021
@kszczepanskidev
Copy link
Owner

This should be fixed now in 1.2.5.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants