Quantcast

Don't add debuffs to arena frames

Adrian L Lange [09-01-14 - 19:57]
Don't add debuffs to arena frames
Filename
oUF_P3lim.lua
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