Thread Tools Display Modes
09-04-12, 06:57 AM   #1
widell
A Kobold Labourer
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 1
Detecting Faerie Swarm CD

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.

Last edited by widell : 09-04-12 at 07:00 AM.
  Reply With Quote
09-04-12, 07:12 AM   #2
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Code:
local start, duration, enabled = GetSpellCooldown(102355) -- Spell ID of Faerie Swarm
if(enabled == 1 and duration > 1.5) then
    local _, _, icon = GetSpellInfo(102355) -- Spell ID of Faerie Swarm
end
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Detecting Faerie Swarm CD


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off