RollupAve based on condition

Hi,

i need to calculate average amount of opportunities related to a project, but i need to consider only opportunities where "opportunity type" dropdown field is set to a defined value. Cannot find what to add to basic average function, anybody can help please?

rollupAve($osy_project_phases_opportunities_1,"average_value_c")