From b8b771c73fa249c3dcc0ee7e244ec264922dcb99 Mon Sep 17 00:00:00 2001 From: MysticalOS Date: Mon, 2 Mar 2020 21:08:03 -0500 Subject: [PATCH] Fixed nameplate code, AGAIN. I swear I tested this in two visions earlier and it wasn't working fine. This should MAKE SURE it doesn't screw up again. --- DBM-Challenges/BfA/NzothVisionOrgrimmar.lua | 2 +- DBM-Challenges/BfA/NzothVisionStormwind.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DBM-Challenges/BfA/NzothVisionOrgrimmar.lua b/DBM-Challenges/BfA/NzothVisionOrgrimmar.lua index bebbee7..738042b 100644 --- a/DBM-Challenges/BfA/NzothVisionOrgrimmar.lua +++ b/DBM-Challenges/BfA/NzothVisionOrgrimmar.lua @@ -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) diff --git a/DBM-Challenges/BfA/NzothVisionStormwind.lua b/DBM-Challenges/BfA/NzothVisionStormwind.lua index b82f2d6..a758ed9 100644 --- a/DBM-Challenges/BfA/NzothVisionStormwind.lua +++ b/DBM-Challenges/BfA/NzothVisionStormwind.lua @@ -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)