Fix minor drycode bugs
Adrian L Lange [06-05-10 - 21:03]
diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua
index af69457..80ed2db 100644
--- a/oUF_P3lim.lua
+++ b/oUF_P3lim.lua
@@ -54,17 +54,17 @@ end
local UnitSpecific = {
player = function(self)
- local leader = health:CreateTexture(nil, 'OVERLAY')
+ local leader = self.Health:CreateTexture(nil, 'OVERLAY')
leader:SetPoint('TOPLEFT', self, 0, 8)
leader:SetSize(16, 16)
self.Leader = leader
- local assistant = health:CreateTexture(nil, 'OVERLAY')
+ local assistant = self.Health:CreateTexture(nil, 'OVERLAY')
assistant:SetPoint('TOPLEFT', self, 0, 8)
assistant:SetSize(16, 16)
self.Assistant = assistant
- local info = health:CreateFontString(nil, 'OVERLAY')
+ local info = self.Health:CreateFontString(nil, 'OVERLAY')
info:SetPoint('CENTER')
info:SetFont(FONT, 8, 'OUTLINE')
self:Tag(info, '[p3lim:threat]')
@@ -202,7 +202,7 @@ local function Shared(self, unit)
debuffs.num = 3
debuffs.size = 19
- self.Health:SetAllPoints()
+ health:SetAllPoints()
self:SetAttribute('initial-height', 19)
self:SetAttribute('initial-width', 161)
end
@@ -220,7 +220,7 @@ local function Shared(self, unit)
end
if(UnitSpecific[unit]) then
- return UnitSpecific[unit]
+ return UnitSpecific[unit](self)
end
end