fix ArenaEnemyFrame hide only if exists

This commit is contained in:
Sumsebrum 2021-09-15 19:33:33 +02:00
parent 2c845547a4
commit a0ed3be791

View File

@ -463,17 +463,39 @@ end
function Gladdy:BlizzArenaSetAlpha(alpha) function Gladdy:BlizzArenaSetAlpha(alpha)
if IsAddOnLoaded("Blizzard_ArenaUI") then if IsAddOnLoaded("Blizzard_ArenaUI") then
ArenaEnemyFrames:SetAlpha(alpha) if (ArenaEnemyFrames) then
ArenaEnemyFrame1:SetAlpha(alpha) ArenaEnemyFrames:SetAlpha(alpha)
ArenaEnemyFrame1PetFrame:SetAlpha(alpha) end
ArenaEnemyFrame2:SetAlpha(alpha) if ArenaEnemyFrame1 then
ArenaEnemyFrame2PetFrame:SetAlpha(alpha) ArenaEnemyFrame1:SetAlpha(alpha)
ArenaEnemyFrame3:SetAlpha(alpha) end
ArenaEnemyFrame3PetFrame:SetAlpha(alpha) if ArenaEnemyFrame1PetFrame then
ArenaEnemyFrame4:SetAlpha(alpha) ArenaEnemyFrame1PetFrame:SetAlpha(alpha)
ArenaEnemyFrame4PetFrame:SetAlpha(alpha) end
ArenaEnemyFrame5:SetAlpha(alpha) if ArenaEnemyFrame2 then
ArenaEnemyFrame5PetFrame:SetAlpha(alpha) ArenaEnemyFrame2:SetAlpha(alpha)
end
if ArenaEnemyFrame2PetFrame then
ArenaEnemyFrame2PetFrame:SetAlpha(alpha)
end
if ArenaEnemyFrame3 then
ArenaEnemyFrame3:SetAlpha(alpha)
end
if ArenaEnemyFrame3PetFrame then
ArenaEnemyFrame3PetFrame:SetAlpha(alpha)
end
if ArenaEnemyFrame4 then
ArenaEnemyFrame4:SetAlpha(alpha)
end
if ArenaEnemyFrame4PetFrame then
ArenaEnemyFrame4PetFrame:SetAlpha(alpha)
end
if ArenaEnemyFrame5 then
ArenaEnemyFrame5:SetAlpha(alpha)
end
if ArenaEnemyFrame5PetFrame then
ArenaEnemyFrame5PetFrame:SetAlpha(alpha)
end
end end
end end