Skip to content

Commit

Permalink
Fixed PetBattle error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shestak committed Sep 27, 2012
1 parent 16f4233 commit 97e368e
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions ShestakUI/Modules/Blizzard/PetBattle.lua
Expand Up @@ -242,15 +242,23 @@ bar:SetScript("OnEvent", function(self, event)
if event == "PET_BATTLE_OPENING_START" then
if C.unitframe.enable == true then
oUF_Player:SetAlpha(0)
oUF_Pet:SetAlpha(0)
oUF_Focus:SetAlpha(0)
if C.unitframe.show_pet == true then
oUF_Pet:SetAlpha(0)
end
if C.unitframe.show_focus == true then
oUF_Focus:SetAlpha(0)
end
end
self:Show()
else
if C.unitframe.enable == true then
oUF_Player:SetAlpha(1)
oUF_Pet:SetAlpha(1)
oUF_Focus:SetAlpha(1)
if C.unitframe.show_pet == true then
oUF_Pet:SetAlpha(1)
end
if C.unitframe.show_focus == true then
oUF_Focus:SetAlpha(1)
end
end
self:Hide()
end
Expand Down

0 comments on commit 97e368e

Please sign in to comment.