Why doesn t the foam shader also affect meshes with static mobility

Hello! I have a problem with my foam shader, I don t understand what I m doing wrong.
I want the foam to be generated specifically for static mobility meshes.
Video exemple