This doesn't seem to work and I can't figure out why.
Code:
local GCD = 1.5
local _,FaerieSwarmCD = GetSpellCooldown(102355)
if(GetSpellInfo("Faerie Swarm") and (FaerieSwarmCD <= GCD)) then
_,_,PriorityIcon = GetSpellInfo(102355)
end
GetSpellInfo("Spell name") returns nil if a spell with that nam can't be found in the spellbook.
I use this exact type of if sentence to determine if other spells are ready to use, and they work fine. Just not this one. Even normal Faerie Fire works great, just not the talented version. I looked it up on WoWhead. There are several spells called "Faerie Swarm", and I tried using all the different spell IDs. No luck.