From 42160f7d78c68d0250a0ac998fa9ecf6e64d8f93 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Tue, 18 Dec 2012 11:02:41 +0400 Subject: [PATCH] What you think bout this one? Basicaly it shows only those LFR dungeon you have level/item level to get into. Still needs locales --- ElvUI_SLE/modules/datatexts/time.lua | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/ElvUI_SLE/modules/datatexts/time.lua b/ElvUI_SLE/modules/datatexts/time.lua index 89ab211..2028d81 100644 --- a/ElvUI_SLE/modules/datatexts/time.lua +++ b/ElvUI_SLE/modules/datatexts/time.lua @@ -151,15 +151,25 @@ local function OnEnter(self) if E.db.datatexts.lfrshow then --LFR lockout text local lvl = UnitLevel("player") + local ilvl = GetAverageItemLevel() GameTooltip:AddLine(" ") - if lvl >= 80 and lvl < 86 then + if lvl == 85 and ilvl >= 372 then DT:DragonSoul(416, 417) - elseif lvl >= 86 then - DT:Mogushan(527, 528) - GameTooltip:AddLine(" ") - DT:HoF(529, 530) - GameTooltip:AddLine(" ") - DT:ToES(526) + elseif lvl == 90 then + if ilvl >= 460 then + DT:Mogushan(527, 528) + GameTooltip:AddLine(" ") + end + if ilvl >= 470 then + DT:HoF(529, 530) + GameTooltip:AddLine(" ") + DT:ToES(526) + end + if ilvl < 460 then + GameTooltip:AddLine("No LFR is available for your lever/gear.") + end + else + GameTooltip:AddLine("No LFR is available for your lever/gear.") end --LFR lockout end end -- 1.7.9.5