Originally Posted by
TolanNightBlade
*Note* with buffs such as Bloodtalons you do not really need the spell id, can just query UnitAuras with the name "Bloodtalons"
That's only for when the buff is up. I need it to also know what bloodtalons is while nothing is up, as well as while predatory swiftness is up, which it will display until you consume it to proc bloodtalons.
---------
I decided against tables afterall, and feel like a dick for making you do all this for me, though I did learn a thing or two.. or three.. :P
I REALLY like your idea of creating a global catch for problematic spells. Won't be necessary with how I have it now, but still a cool idea.
I *could* just have it catch all spells that can't be called by name, run that for loop one time and have the spellIDs for everything put into a table automatically. Still.. I was thinking, I really don't want to add too much to the trigger function, and while this cuts off millions of loops from init, that only happens once versus now we're running a much smaller loop, but every frame. It ended up being a little easier than I expected to add a line to allow the user to specify spellID without breaking anything.
Code:
-- I put this one in Actions
aura_env.spellID = nil -- ONLY necessary for abilities that don't appear in your spellbook. Put the spell ID here, else leave as nil
-- And the trigger literally doesn't change at all, because the spellID specified in Actions was already just the fallback.
-- Don't really know why I resisted this idea in the first place
- - - Updated - - -
Updated - Fixed - etc etc
https://wago.io/4JxJwXI5Z
Fury of Elune turned out to be a weird one haha