Thread Tools Display Modes
Prev Previous Post   Next Post Next
12-13-14, 10:51 AM   #1
nin
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 213
Sacred Shield Tag[SOLVED]

Hey guys!

Im using a tag for oUF that looks like this

Code:
spells["Sacred Shield"] = GetSpellInfo(148039)
Code:
oUF.Tags.Methods['SS'] = function(u) 
    local name, _,_,_,_,_, expirationTime, fromwho = UnitAura(u, spells["Sacred Shield"])
    if(fromwho == "player") then
        local spellTimer = (expirationTime-GetTime())
		local TimeLeft =  numberize(spellTimer)
        if spellTimer > 0 then
            return "|cffFFAB00"..TimeLeft.."|r"
        end
    end
end
oUF.Tags.Events['SS'] = "UNIT_AURA"
Can anyone help me understand or edit this so i can track the 30sec duration buff from sacred shield(looked through the ID's and pretty sure im using the right one). now i only get the 5 sec actual shield showing.

thanks!

Last edited by nin : 12-14-14 at 03:02 PM.
  Reply With Quote
 

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Sacred Shield Tag


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