From 9a4c009a27122e621ddc9fc7cfff118907215f6a Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Tue, 7 Feb 2012 18:27:09 +0100 Subject: [PATCH] R-implement support for oUF 1.5.x --- oUF_P3lim.lua | 4 ++-- tags.lua | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua index ecd7d7d..285ec6e 100644 --- a/oUF_P3lim.lua +++ b/oUF_P3lim.lua @@ -37,9 +37,9 @@ local function PostCreateAura(element, button) end local function PostUpdateDebuff(element, unit, button, index) - local _, _, _, _, type = UnitAura(unit, index, button.filter) + local _, _, _, _, type, _, _, owner = UnitAura(unit, index, button.filter) - if(button.owner == 'player') then + if(owner == 'player') then local color = DebuffTypeColor[type or 'none'] button:SetBackdropColor(color.r * 3/5, color.g * 3/5, color.b * 3/5) button.icon:SetDesaturated(false) diff --git a/tags.lua b/tags.lua index 0f9b151..7daa301 100644 --- a/tags.lua +++ b/tags.lua @@ -9,7 +9,14 @@ local function ShortValue(value) end end -local tags = oUF.Tags +local tags +if(oUF.version == '1.6.0') then + tags = oUF.Tags +else + tags = {} + tags.Methods = oUF.Tags + tags.Events = oUF.TagEvents +end tags.Methods['p3lim:status'] = function(unit) if(not UnitIsConnected(unit)) then -- 1.7.9.5