You could create a Collision box that adds a “Safe State” to the player when he is overlapping and this “Safe State” is checked when you do damage from rain.