if ( GameTooltip:IsOwned(self) ) then GameTooltip:SetUnitBuff("party"..self:GetParent():GetID(), self:GetID()); end GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); GameTooltip:SetUnitBuff("party"..self:GetParent():GetID(), self:GetID()); GameTooltip:Hide(); if ( GameTooltip:IsOwned(self) ) then GameTooltip:SetUnitDebuff("party"..self:GetParent():GetID(), self:GetID()); end GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); GameTooltip:SetUnitDebuff("party"..self:GetParent():GetID(), self:GetID()); GameTooltip:Hide(); if ( GameTooltip:IsOwned(self) ) then GameTooltip:SetUnitDebuff("partypet"..self:GetParent():GetID(), self:GetID()); end GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); GameTooltip:SetUnitDebuff("partypet"..self:GetParent():GetParent():GetID(), self:GetID()); local id = self:GetParent():GetID(); local prefix = "PartyMemberFrame"..id.."PetFrame"; local unit = "partypet"..id; UnitFrame_Initialize(self, unit, _G[prefix.."Name"], _G[prefix.."Portrait"], _G[prefix.."HealthBar"], _G[prefix.."HealthBarText"], nil, nil, _G[prefix.."Flash"]); SetTextStatusBarTextZeroText(_G[prefix.."HealthBar"], DEAD); _G[prefix.."Name"]:Hide(); SecureUnitButton_OnLoad(self, unit); UnitFrame_Update(self); UnitFrame_OnEvent(self, event, ...); UnitFrame_OnEnter(self, motion); UnitFrame_OnLeave(self, motion); VoiceChat_OnUpdate(self, elapsed); RaiseFrameLevelByTwo(self);