Replace the Level line with code by dasfiend.
Scott Sibley [11-15-10 - 09:56]
Replace the Level line with code by dasfiend.
diff --git a/Modules/UnitTooltip/UnitTooltip.lua b/Modules/UnitTooltip/UnitTooltip.lua
index 1cb6390..8efa0c7 100644
--- a/Modules/UnitTooltip/UnitTooltip.lua
+++ b/Modules/UnitTooltip/UnitTooltip.lua
@@ -135,7 +135,17 @@ return Realm(unit)
left = 'return "Level:"',
right = [[
local classification = Classification(unit)
-return format("%s%s", Level(unit), Colorize(classification and (' ' .. classification) or '', DifficultyColor(unit)))
+local lvl = Level(unit)
+local str = ""
+local r, g, b
+if classification then
+ str = str .. classification
+end
+if lvl then
+ str = str .. " (" .. lvl .. ")"
+end
+str = Colorize(str, DifficultyColor(unit))
+return str
]],
enabled = true,
},