#Show what spell triggered GCD

10 messages · Page 1 of 1 (latest)

finite canopy
#

I've attached a link to my castbar group I've been using for MoP classic. Would love to be able to show the name of the ability (an icon) on the castbar for spells that trigger the GCD, not just for casts. So for example if I cast Lightning bolt that shows up, but when I cast flameshock I also want to see that ability on the castbar. Sorry if it's an obvious trigger but I didn't see it anywhere.

Here's a link to my castbar group if that helps. TIA
https://wago.io/QSBTq7UFO

Wago.io is a database of sharable World of Warcraft addon elements

latent sphinx
#

think the easiest way would be checking for %spellName through combat log spell cast start/success. if you specifically want to avoid off-GCD abilities from showing up you can manually list all the GCD abilities into Spell Name.

if you want to try through custom code then C_Spell.GetSpellCooldown also shows if a spell is on gcd through the activeCategory value of 133. so you could try a custom trigger with some combination of SPELL_UPDATE_COOLDOWN / CLEU events / UNIT_SPELLCAST_XYZ, though idk if you can get it to work reliably (ex. some events fire too often or not at the right time, like if you cancel your cast then only event that properly updates GCD seems to be UNIT_SPELLCAST_INTERRUPTED)

finite canopy
# latent sphinx think the easiest way would be checking for %spellName through combat log spell ...

Thanks so much for your help. I ended up following your first suggestion making a second aura using a combat log spell cast success trigger with another trigger for player not casting. It works pretty well against the target dummy.

However, I am also having a weird anchoring issues when these auras show and hide. It's like the name auras shift a few pixels left and right at the start of a cast. Any idea what's causing that? I have the spell name aura anchored to the bottom of the castbar aura. I updated my wago link above if you wouldn't mind checking it out

latent sphinx
#

not entirely sure what you mean as i don't see anything shifting left & right, though i noticed ele-castbar_gcdname is anchored to ele-castbar-bar. shouldn't that be on ele-castbar_bar GCD?

if you mean the spellname kinda flashing in & out when you cast a 2nd spell, it's cuz gcdname is hiding & spellname is appearing both at the same time. not much you can do about that other than resorting to custom triggers or specifying gcd instant casts into gcdname spell names.

finite canopy
#

framerate is terrible but you can catch it on a few casts. it just kind of jumps horizontally. is this just because of weird delays on when the events are firing and when the auras are triggering?

latent sphinx
#

alright i see what you mean, it seems to be an animation tab problem with dynamic text such as %spellName. nothing to do with anchors or any other part of the group, odd bug.

#

seems like you can fix it by changing width from automatic to fixed in display tab

finite canopy
#

Wow, that does fix it, i never would have thought of that. thank you!!!! Unfortunately since my cute little icon was anchored to the left of the text its now off in north dakota. so I guess my choices are to have an icon but have weird shifting, or have centered text with no icon.

thanks so much for your help man, really appreciate the time

latent sphinx
#

you can use %i %spellName in the text field which will also show icon, but it won't have the circular mask texture that your icon aura has. don't think it's possible to add that in this case.

#

actually you can add text to the icon aura and change anchor on the text, that way you can keep the mask texture.