From 646732e0a6bcbcbde4a5969a85ddd1be5d2bad41 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Sun, 24 May 2020 12:42:43 -0300 Subject: [PATCH] Fixed AutoHide in Battlegrounds --- boot.lua | 4 ++-- functions/pack.lua | 4 +--- gumps/janela_principal.lua | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/boot.lua b/boot.lua index 9eea4c855..e69209966 100644 --- a/boot.lua +++ b/boot.lua @@ -4,8 +4,8 @@ _ = nil _detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0") - _detalhes.build_counter = 7329 - _detalhes.alpha_build_counter = 7329 --if this is higher than the regular counter, use it instead + _detalhes.build_counter = 7330 + _detalhes.alpha_build_counter = 7330 --if this is higher than the regular counter, use it instead _detalhes.game_version = "v8.3.0" _detalhes.userversion = "v8.3.0." .. _detalhes.build_counter _detalhes.realversion = 140 --core version, this is used to check API version for scripts and plugins (see alias below) diff --git a/functions/pack.lua b/functions/pack.lua index e78e57758..e527cc7ec 100644 --- a/functions/pack.lua +++ b/functions/pack.lua @@ -1,3 +1 @@ - - -local _detalhes = _G._detalhes \ No newline at end of file +local Details = Details \ No newline at end of file diff --git a/gumps/janela_principal.lua b/gumps/janela_principal.lua index 26c8ec5c0..419a43d78 100644 --- a/gumps/janela_principal.lua +++ b/gumps/janela_principal.lua @@ -7466,7 +7466,7 @@ function _detalhes:SetCombatAlpha (modify_type, alpha_amount, interacting) elseif (self.hide_in_combat_type == 8) then --"In Battlegrounds" local isInInstance = IsInInstance() - if (isInInstance or _detalhes.zone_type == "pvp") then + if (isInInstance and _detalhes.zone_type == "pvp") then self:SetWindowAlphaForCombat (true, true) --> hida a janela else self:SetWindowAlphaForCombat (false) --> deshida a janela