From d8a02811709448226e90f3a3e6dead025100c8a9 Mon Sep 17 00:00:00 2001 From: Ironi Date: Tue, 15 Nov 2016 05:54:17 +0200 Subject: [PATCH] color max weekly dungeon to green when its >=12 --- iKeystones.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/iKeystones.lua b/iKeystones.lua index 4daa278..463dafe 100644 --- a/iKeystones.lua +++ b/iKeystones.lua @@ -96,7 +96,12 @@ function iKS:printKeystones() else itemLink = 'NONE' end - local str = string.format('|c%s%s\124r: %s M:%s', RAID_CLASS_COLORS[data.class].colorStr, data.name, itemLink, data.maxCompleted) + local str = '' + if data.server == GetRealmName() then + str = string.format('|c%s%s\124r: %s M:%s', RAID_CLASS_COLORS[data.class].colorStr, data.name, itemLink, (data.maxCompleted >= 12 and '|cff00ff00' .. data.maxCompleted) or data.maxCompleted) + else + str = string.format('|c%s%s-%s\124r: %s M:%s', RAID_CLASS_COLORS[data.class].colorStr, data.name, data.server,itemLink,(data.maxCompleted >= 12 and '|cff00ff00' .. data.maxCompleted) or data.maxCompleted) + end print(str) end end -- 1.7.9.5