Use UnitPVPname if the name's available (perhaps also in range), else UnitName
Scott Sibley [12-13-10 - 05:43]
Use UnitPVPname if the name's available (perhaps also in range), else UnitName
diff --git a/Modules/UnitTooltip/UnitTooltip.lua b/Modules/UnitTooltip/UnitTooltip.lua
index 28958c1..44bcbd7 100644
--- a/Modules/UnitTooltip/UnitTooltip.lua
+++ b/Modules/UnitTooltip/UnitTooltip.lua
@@ -92,7 +92,7 @@ local dnd = DND(unit)
if dnd and afk == "" then
afk = " " .. Angle(dnd)
end
-return Colorize(Name(unit) .. afk , r, g, b)
+return Colorize((Name(unit, true) or Name(unit)) .. afk , r, g, b)
]],
right = nil,
bold = true,