From 40c528841056adb85d744106f7b4de0172e36bbf Mon Sep 17 00:00:00 2001 From: Darthpred Date: Mon, 22 Aug 2016 09:42:20 +0300 Subject: [PATCH] Fix long cd fuckup --- ElvUI_SLE/modules/minimap/locationbar.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 1.7.9.5