oUF - Layout discussion
View Single Post
10-06-08, 12:54 PM
Join Date: Oct 2006
Originally Posted by
I'm setting up player auras and wanted to have them displayed with a numeric duration next to them, like Elk's BuffBars (just time, I don't care about bars).
Looking at the Blizzard API's, it seems like you're only supposed to be able to get durations for things you cast. Elk's code gets around this (I think) with the follow type of code:
You always have the time for auras on yourself and your pet(?). It's when the auras are on other units that you only get the time for ones you cast. That's how the API works. And EBB does work for target, but if it's something you didn't cast, it won't have a time for it.
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff,
The Tao of Pooh
View Public Profile
Send a private message to Seerah
Find More Posts by Seerah