Skip to content

Commit

Permalink
Fixed AutoHide in Battlegrounds
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed May 24, 2020
1 parent 79c86f9 commit 646732e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions boot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 1 addition & 3 deletions functions/pack.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@


local _detalhes = _G._detalhes
local Details = Details
2 changes: 1 addition & 1 deletion gumps/janela_principal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 646732e

Please sign in to comment.