Quantcast

Fix long cd fuckup

Darthpred [08-22-16 - 06:42]
Fix long cd fuckup
Filename
ElvUI_SLE/modules/minimap/locationbar.lua
diff --git a/ElvUI_SLE/modules/minimap/locationbar.lua b/ElvUI_SLE/modules/minimap/locationbar.lua
index 6722762..6d00ff1 100644
--- a/ElvUI_SLE/modules/minimap/locationbar.lua
+++ b/ElvUI_SLE/modules/minimap/locationbar.lua
@@ -360,7 +360,7 @@ function LP:ItemList(check)
 					HSplace = " - "..GetBindLocation()
 				end
 				E:CopyTable(tmp, data)
-				if cd and T.tonumber(cd) > 1.5 then
+				if cd or (T.tonumber(cd) and T.tonumber(cd) > 1.5) then
 					tmp.text = "|cff636363"..tmp.text..HSplace.."|r"..T.format(LP.CDformats[LP.db.portals.cdFormat], cd)
 				else
 					tmp.text = tmp.text..HSplace
@@ -380,7 +380,7 @@ function LP:SpellList(list, dropdown, check)
 				return true
 			else
 				local cd = DD:GetCooldown("Spell", data.secure.ID)
-				if cd and T.tonumber(cd) > 1.5 then
+				if cd or (T.tonumber(cd) and T.tonumber(cd) > 1.5) then
 					E:CopyTable(tmp, data)
 					tmp.text = tmp.text..T.format(LP.CDformats[LP.db.portals.cdFormat], cd)
 					T.tinsert(dropdown, tmp)