Originally Posted by lightspark
-- edit #1
I should get some coffee...
Do exactly that Just use `break`s to stop the for-loop if you need...
|
Hi lightspark
,
I was considering something like...
Lua Code:
function UpdateDebuff(self)
self:ReleaseAll();
local prevButton;
for i, auraID in pairs(auraIDList) do
for j = 1, 40 do
local _, _, icon, count, _, duration, expires, _, _, _, spellID = UnitDebuff("target", j, "PLAYER");
if auraID == spellID then
-- blah blah blah
break;
end
end
end
end
But...
(1) What if my spell doesn't get included within those 40 debuffs?
(2) Would there be a variable that stores number of unit's (not only target's, but for others' as well) buff/debuff?
I mean something like BUFF_ACTUAL_DISPLAY/DEBUFF_ACTUAL_DISPLAY for player.
(3) I tried to refer aura element of oUF, but.............. meh... guess it's too complex for me