Elements store their owner frame, let's use it
Adrian L Lange [08-19-14 - 16:48]
Elements store their owner frame, let's use it
diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua
index 081524d..858121e 100644
--- a/oUF_P3lim.lua
+++ b/oUF_P3lim.lua
@@ -16,7 +16,7 @@ local BACKDROP = {
}
local function PostUpdatePower(element, unit, min, max)
- element:GetParent().Health:SetHeight(max ~= 0 and 20 or 22)
+ element.__owner.Health:SetHeight(max ~= 0 and 20 or 22)
end
local function PostUpdateCast(element, unit)