Skip to content

Commit

Permalink
Fixed nameplate code, AGAIN. I swear I tested this in two visions ear…
Browse files Browse the repository at this point in the history
…lier and it wasn't working fine. This should MAKE SURE it doesn't screw up again.
  • Loading branch information
MysticalOS committed Mar 3, 2020
1 parent f622a46 commit b8b771c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DBM-Challenges/BfA/NzothVisionOrgrimmar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function mod:OnCombatStart(delay)
self.vb.VezokkCleared = false
if self.Options.SpecWarn306545dodge3 then
--This warning requires friendly nameplates, because it's only way to detect it.
CVAR1, CVAR2 = GetCVar("nameplateShowFriends") or 0, GetCVar("nameplateShowFriendlyNPCs") or 0
CVAR1, CVAR2 = tonumber(GetCVar("nameplateShowFriends") or 0), tonumber(GetCVar("nameplateShowFriendlyNPCs") or 0)
--Check if they were disabled, if disabled, force enable them
if (CVAR1 == 0) or (CVAR2 == 0) then
SetCVar("nameplateShowFriends", 1)
Expand Down
2 changes: 1 addition & 1 deletion DBM-Challenges/BfA/NzothVisionStormwind.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function mod:OnCombatStart(delay)
self.vb.UmbricCleared = false
if self.Options.SpecWarn306545dodge3 then
--This warning requires friendly nameplates, because it's only way to detect it.
CVAR1, CVAR2 = GetCVar("nameplateShowFriends") or 0, GetCVar("nameplateShowFriendlyNPCs") or 0
CVAR1, CVAR2 = tonumber(GetCVar("nameplateShowFriends") or 0), tonumber(GetCVar("nameplateShowFriendlyNPCs") or 0)
--Check if they were disabled, if disabled, force enable them
if (CVAR1 == 0) or (CVAR2 == 0) then
SetCVar("nameplateShowFriends", 1)
Expand Down

0 comments on commit b8b771c

Please sign in to comment.