Thanks for the link. My addon will be super basic
I also found WoWWiki with plenty of links and suggestions.
Just one question. If I want to check if buff exists, is it all right if I just check UnitBuff() itself, e.g.:
Lua Code:
-- code
if UnitBuff("PLAYER", buff) then
-- code to calculate times
end
or should I always test variables returned from the function:
Lua Code:
local _, _, _, _, _, dur, exptime = UnitBuff("PLAYER", buff)
if dur and exptime then
-- code to calculate times
end
Thanks