This has already been addressed several times but its been a while since no one mentions and its annoying as hell: Pokes with immunity granting abilities are susceptible to stuns of the type it became immune against, even when protected. They dont get dmged, just stunned
Ex: Pokes with Levitate are stunned by Mud Spatter, Mud Bomb etc
Pokes with Storm Drain are stunned by Soak, Water Pulse, Water Pledge, etc
There might be more cases, too lazy to try to remember
Regards