im able to get the nameplate i want but can't figure out how to show the icon and attach it to it
function(allstates, event, unit)
if event == "NAME_PLATE_UNIT_ADDED" and unit ~= nil then
local role = UnitGroupRolesAssigned(unit)
if role == "HEALER" then
local name = UnitName(unit)
local frame = C_NamePlate.GetNamePlateForUnit(unit)
print(name)
end
end
return true
end