Oh yeah i think it has to do with the FC, not the game itself.
Yeah im pretty sure it works that way, at least thats what serebii says.
There are 2 slots, 3 if that friend has beaten the E4. And if they are online when you are, the pokemon might have their hidden ability!! Here is a list:
Friend Safari