From 7f326d2225cc4feac599ef356fc0cb0a4092e2dd Mon Sep 17 00:00:00 2001 From: urnati Date: Thu, 8 Aug 2019 16:28:45 -0400 Subject: [PATCH] Fix for tool tip error --- TitanClassicLootType/TitanClassicLootType.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/TitanClassicLootType/TitanClassicLootType.lua b/TitanClassicLootType/TitanClassicLootType.lua index 8c5914c..0761d5a 100644 --- a/TitanClassicLootType/TitanClassicLootType.lua +++ b/TitanClassicLootType/TitanClassicLootType.lua @@ -64,7 +64,10 @@ function TitanPanelLootTypeButton_GetDungeonDifficultyIDText(isRaid, withpar) local diffstr = "|cffffff9a"..par1.._G["UNKNOWN"]..par2.."|r" if isRaid then -- raids - local diff = GetRaidDifficultyID() + local diff = nil + if GetRaidDifficultyID then + diff = GetRaidDifficultyID() + end if not diff then return diffstr end local name, groupType, isHeroic, isChallengeMode, displayHeroic, displayMythic, toggleDifficultyID = GetDifficultyInfo(diff) -- remove () chars from difficulty @@ -79,7 +82,10 @@ function TitanPanelLootTypeButton_GetDungeonDifficultyIDText(isRaid, withpar) end else -- dungeons - local diff = GetDungeonDifficultyID() + local diff = nil + if GetRaidDifficultyID then + diff = GetRaidDifficultyID() + end if not diff then return diffstr end local name, groupType, isHeroic, isChallengeMode, displayHeroic, displayMythic, toggleDifficultyID = GetDifficultyInfo(diff) -- remove () chars from difficulty -- 1.7.9.5