Permalink
Browse files
Merge branch 'master' of github.com:Shestak/ShestakUI
- Loading branch information
Showing
with
2 additions
and
0 deletions.
-
+2
−0
ShestakUI/Modules/Tooltip/UnitRole.lua
|
@@ -20,6 +20,8 @@ end |
|
|
|
|
|
GameTooltip:HookScript("OnTooltipSetUnit", function(self, ...) |
|
|
local _, unit = GameTooltip:GetUnit() |
|
|
local _, instanceType = IsInInstance() |
|
|
if instanceType == "scenario" then return end |
|
|
if unit and UnitIsPlayer(unit) and ((UnitInParty(unit) and GetNumGroupMembers() > 0) or (UnitInRaid(unit) and GetNumGroupMembers() > 0)) then |
|
|
GameTooltip:AddLine(ROLE..": "..GetLFDRole(unit)) |
|
|
end |
|
|
0 comments on commit
ac44dfc