Quantcast

Add rank index to guild rank line.

Scott Sibley [06-19-11 - 21:09]
Add rank index to guild rank line.
Filename
Modules/UnitTooltip/UnitTooltip.lua
diff --git a/Modules/UnitTooltip/UnitTooltip.lua b/Modules/UnitTooltip/UnitTooltip.lua
index b4c98e9..0322c36 100644
--- a/Modules/UnitTooltip/UnitTooltip.lua
+++ b/Modules/UnitTooltip/UnitTooltip.lua
@@ -138,7 +138,11 @@ return Guild(unit, true)
         name = L["Rank"],
         left = 'return L["Rank:"]',
         right = [[
-return Rank(unit)
+local rank = Rank(unit)
+local index = RankIndex(unit)
+if rank then
+  return format("%s (%d)", rank, index)
+end
 ]],
 		enabled = true,
     },