From d6fe8656c53feffb4cf2da57e7cad9dafe66a2fd Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Mon, 1 Sep 2014 21:57:15 +0200 Subject: [PATCH] Don't add debuffs to arena frames --- oUF_P3lim.lua | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua index 86ff548..6969faa 100644 --- a/oUF_P3lim.lua +++ b/oUF_P3lim.lua @@ -576,7 +576,22 @@ local function Shared(self, unit) self.Threat = Threat end - if(unit ~= 'party' and unit ~= 'raid' and unit ~= 'boss') then + if(unit == 'party' or unit == 'raid' or unit == 'arena') then + local Name = self.Health:CreateFontString(nil, 'OVERLAY') + Name:SetPoint('LEFT', 3, 0) + Name:SetPoint('RIGHT', self.HealthValue, 'LEFT') + Name:SetFont(FONT, 8, 'OUTLINEMONOCHROME') + Name:SetJustifyH('LEFT') + self.Name = Name + + local Resurrect = Health:CreateTexture(nil, 'OVERLAY') + Resurrect:SetPoint('CENTER', 0, -1) + Resurrect:SetSize(16, 16) + Resurrect.PostUpdate = PostUpdateResurrect + self.ResurrectIcon = Resurrect + + self:RegisterEvent('UNIT_AURA', PostUpdateResurrect) + elseif(unit ~= 'boss') then local Debuffs = CreateFrame('Frame', nil, self) Debuffs.spacing = 4 Debuffs.initialAnchor = 'TOPLEFT' @@ -602,23 +617,6 @@ local function Shared(self, unit) end end - if(unit == 'party' or unit == 'raid' or unit == 'arena') then - local Name = self.Health:CreateFontString(nil, 'OVERLAY') - Name:SetPoint('LEFT', 3, 0) - Name:SetPoint('RIGHT', self.HealthValue, 'LEFT') - Name:SetFont(FONT, 8, 'OUTLINEMONOCHROME') - Name:SetJustifyH('LEFT') - self.Name = Name - - local Resurrect = Health:CreateTexture(nil, 'OVERLAY') - Resurrect:SetPoint('CENTER', 0, -1) - Resurrect:SetSize(16, 16) - Resurrect.PostUpdate = PostUpdateResurrect - self.ResurrectIcon = Resurrect - - self:RegisterEvent('UNIT_AURA', PostUpdateResurrect) - end - if(UnitSpecific[unit]) then return UnitSpecific[unit](self) end -- 1.7.9.5