Fixed AutoHide in Battlegrounds

This commit is contained in:
Tercio Jose
2020-05-24 12:42:43 -03:00
parent 79c86f9945
commit 646732e0a6
3 changed files with 4 additions and 6 deletions
+2 -2
View File
@@ -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)
+1 -3
View File
@@ -1,3 +1 @@
local _detalhes = _G._detalhes
local Details = Details
+1 -1
View File
@@ -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