#Github wiki CD without GCD tracking not working

18 messages · Page 1 of 1 (latest)

sonic ravine
#

Hi, all! Very new to custom weakauras. Trying to make something to track static charges when using lightning rush on skyriding, and I want an element to show only when lightning rush is on cooldown (but not when it's just on gcd). I found a snippet on the weakauras github wiki for doing exactly this, but it... just isn't working. I basically just get a ton of lua errors. I'm sure I'm probably just doing something wrong, tbh, but I don't have the experience to figure out what.

Here's my custom trigger:

    local start, duration = GetSpellCooldown(418592)
    if duration > 0 and duration ~= WeakAuras.gcdDuration() then 
        return true
    else 
        return false 
    end
end```

and as instructed, I have WeakAuras.WatchGCD() in the On Init

anyone able to help?
#

Fixed the lua errors. Now it just... doesn't work anyway

sonic ravine
#

For detail's sake, the specific way in which it doesn't work is that while it does correctly trigger when the spell is on cooldown, it also still triggers when it's only on gcd, which is exactly what the snippet is meant to prevent (or at least that's my understanding of it)

odd shadow
#

It doesnt return 4 values as before, it now returns a table

#
local start = cd.startTime
local duration = cd.duration
#

and continue on your merry way with your code

placid delta
#

The issue is that those spells don't trigger a gcd but something else

sonic ravine
placid delta
#

thats the issue why it shows that cooldown.

#

it isnt the global cooldown. they are all set to cooldown.

odd shadow
#

From what i understand he isnt asking about global cooldown but only cooldown which means he doesnt need code but the code should still handle, so i would assume the spellid is wrong?

#

Since you dont seem to have any events in your code i would guess its not setup correctly.

But you should probably just create a normal cooldown trigger and track the ability, make sure to tick "Exact spell id"

odd shadow
#

Nvm seem like whirling Surge handles it correctly but the new ability doesnt, it requires watched trigger to make it work

odd shadow
#

Okey i was doing kek things updated with a proper version

sonic ravine
#

thanks! I’ll try that when I get home

sonic ravine