I'm not sure in older editions but in 5e, Magic Missile always hit except if something is preventing it like a Shield spell
"So now, the second test will begin. As long as you can cast a spell that can hit me, you'll get a prize," said Antonya with a strange smile in her voice.