Hello, I have been playing Pokemon from many years but never competitive. Also, this is my first question here and I do not speak English as my native language so please be forgiving.
I will put my question into an example.
So, my opponent has a Darmanitan and I switch out my Snivy for my Krookodile, and I want to trap Darmanitan with Sand Tomb. Will my opponent be able to avoid my attack by switching out or I will manage to use my move? (Take into consideration that Darmanitan was already in battle when I switched out.)
Also, in general when will my Pokemon be able to land an attack at the enemy Pokemon, before the enemy Pokemon be able to avoid it by switching out? Is my Pokemon's speed a major factor?