function Aloft:GetTotemExceptionColor(aloftData) |
local type = aloftData.type |
local name = aloftData.name |
if type == "hostile" and (AloftVisibility.db.profile.showHostileTotems or AloftVisibility.db.profile.enableHostileTotem[name]) then |
if type == "hostile" and AloftVisibility.db.profile.enableHostileTotem[name] then |
return AloftVisibility.db.profile.hostileTotemColor[name] |
elseif type == "friendlyNPC" and (AloftVisibility.db.profile.showFriendlyTotems or AloftVisibility.db.profile.enableFriendlyTotem[name]) then |
elseif type == "friendlyNPC" and AloftVisibility.db.profile.enableFriendlyTotem[name] then |
return AloftVisibility.db.profile.friendlyTotemColor[name] |
end |
return nil |