Code:
/script d(GetGroupMemberSelectedRole("group1"))
2 = tank
4 = heal
1 = dps
or : LFG_ROLE_DPS, LFG_ROLE_HEAL, LFG_ROLE_TANK
Code:
function GetGroupMemberRolesFix(unitTag)
local id = GetGroupMemberSelectedRole(unitTag)
return (id == LFG_ROLE_DPS), (id == LFG_ROLE_HEAL), (id == LFG_ROLE_TANK)
end
#local isDps, isHealer, isTank = GetGroupMemberRoles(unitTag)
local isDps, isHealer, isTank = GetGroupMemberRolesFix(unitTag)