#Custom Trigger when cooldown is reset via talent

1 messages · Page 1 of 1 (latest)

quick knoll
#

My goal is to activate a trigger when the cooldown of Rapid Fire is reset via the talent Surging Shots (see image).

There are several traits like this, but the image is one example. (Pyromaniac, Inspiring Vanguard, etc). These are the 4 things I've tried. Not including any else and ends in code for length's sake.

1. Tracking buff ID 391559. It does not apply a buff to track.

2. This trigger. I've confirmed this returns a string as spellName and works with regular auras.

--Event: CLEU:SPELL_AURA_APPLIED
function(event, _,_,_,_,_,_,_,_,_,_,_,_,spellName)
    if spellName == "Surging Shots" then
        return true```  

**3.** This trigger. I've confirmed this returns the spellID as an int, and works with regular spells.
```lua
--Event: UNIT_SPELLCAST_SUCCEEDED
function(event, unitTarget, castGUID, spellID)
    if spellID == 391559 then
        return true```  

**4.** Digging through EventTracker turned up no results for the talent name, SpellID, or anything identifiable.
quick knoll
#

Custom Trigger when cooldown is reset via talent

solid tulip
#

Surging Shots doesn't have anything that shows up in the combat log or any other buffs associated with it. To accomplish this I used a watched trigger for Cooldown Event Ready-> Rapid Fire and Spell Cast Succeeded->Rapid Fire.
You could just use a Cooldown Event Ready trigger if you wanted to have the aura also appear when Rapid Fire naturally has it's cooldown come up. To have it only show up when Surging Shots resets the CD I tracked the expected time the cooldown should be back up and if it's up sooner than that trigger the aura.
https://wago.io/t8-9wWC-j

Shows an icon when Surging Shots resets your Rapid Fire cooldown.