From 0dfef33c3c24956b8686be8106036667c683e978 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Tue, 6 Mar 2012 15:22:39 +0100 Subject: [PATCH] The boss return from UnitAura did not return what I expected, so remove debuffs from party/raid again --- oUF_P3lim.lua | 53 ++++++++++++++++++++++++++--------------------------- 1 file changed, 26 insertions(+), 27 deletions(-) diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua index 03fd6ed..f3992f2 100644 --- a/oUF_P3lim.lua +++ b/oUF_P3lim.lua @@ -159,9 +159,6 @@ local UnitSpecific = { self:HookScript('OnEnter', function() RoleIcon:SetAlpha(1) end) self:HookScript('OnLeave', function() RoleIcon:SetAlpha(0) end) - self.Debuffs.size = 17 - self.Debuffs:SetSize(74, 17) - self.Health:SetAllPoints() self:Tag(self.HealthValue, '[p3lim:status][p3lim:percent]') end, @@ -202,30 +199,6 @@ local function Shared(self, unit) HealthValue.frequentUpdates = 1/4 self.HealthValue = HealthValue - local Debuffs = CreateFrame('Frame', nil, self) - Debuffs.spacing = 4 - Debuffs.initialAnchor = 'TOPLEFT' - Debuffs.PostCreateIcon = PostCreateAura - self.Debuffs = Debuffs - - if(unit == 'focus') then - Debuffs:SetPoint('TOPLEFT', self, 'TOPRIGHT', 4, 0) - Debuffs.onlyShowPlayer = true - elseif(unit ~= 'target') then - Debuffs:SetPoint('TOPRIGHT', self, 'TOPLEFT', -4, 0) - Debuffs.initialAnchor = 'TOPRIGHT' - Debuffs['growth-x'] = 'LEFT' - end - - if(unit == 'focus' or unit == 'targettarget') then - Debuffs.num = 3 - Debuffs.size = 19 - Debuffs:SetSize(230, 19) - - Health:SetAllPoints() - self:SetSize(161, 19) - end - if(unit == 'player' or unit == 'target') then local Power = CreateFrame('StatusBar', nil, self) Power:SetPoint('BOTTOMRIGHT') @@ -291,6 +264,32 @@ local function Shared(self, unit) self:Tag(Name, '[p3lim:color][name][ |cff0090ff>rare<|r]') end + if(unit ~= 'party' and unit ~= 'raid' and unit ~= 'boss') then + local Debuffs = CreateFrame('Frame', nil, self) + Debuffs.spacing = 4 + Debuffs.initialAnchor = 'TOPLEFT' + Debuffs.PostCreateIcon = PostCreateAura + self.Debuffs = Debuffs + + if(unit == 'focus') then + Debuffs:SetPoint('TOPLEFT', self, 'TOPRIGHT', 4, 0) + Debuffs.onlyShowPlayer = true + elseif(unit ~= 'target') then + Debuffs:SetPoint('TOPRIGHT', self, 'TOPLEFT', -4, 0) + Debuffs.initialAnchor = 'TOPRIGHT' + Debuffs['growth-x'] = 'LEFT' + end + + if(unit == 'focus' or unit == 'targettarget') then + Debuffs.num = 3 + Debuffs.size = 19 + Debuffs:SetSize(230, 19) + + Health:SetAllPoints() + self:SetSize(161, 19) + end + end + if(UnitSpecific[unit]) then return UnitSpecific[unit](self) end -- 1.7.9.5