Skip to content

Commit

Permalink
This is why visions needs refactoring. that's on my todo list soon™
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticalOS committed Feb 26, 2020
1 parent bef05f9 commit 760266b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DBM-Challenges/BfA/NzothVisionOrgrimmar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ function mod:OnCombatStart(delay)
CVAR1, CVAR2 = GetCVar("nameplateShowFriends ") or 0, GetCVar("nameplateShowFriendlyNPCs") or 0
--Check if they were disabled, if disabled, force enable them
if (CVAR1 == 0) or (CVAR2 == 0) then
SetCvar("nameplateShowFriends", 1)
SetCvar("nameplateShowFriendlyNPCs", 1)
SetCVar("nameplateShowFriends", 1)
SetCVar("nameplateShowFriendlyNPCs", 1)
end
end
if self.Options.InfoFrame then
Expand All @@ -121,8 +121,8 @@ function mod:OnCombatEnd()
end
--Check if we changed users nameplate options and restore them
if (CVAR1 or CVAR2) and not InCombatLockdown() then
SetCvar("nameplateShowFriends", CVAR1)
SetCvar("nameplateShowFriendlyNPCs", CVAR2)
SetCVar("nameplateShowFriends", CVAR1)
SetCVar("nameplateShowFriendlyNPCs", CVAR2)
CVAR1, CVAR2 = nil, nil
end
end
Expand Down

0 comments on commit 760266b

Please sign in to comment.