What would happen if a hacked genderless or legendary Pokémon and used attract on a normal Pokémon ?
Attract fails if used by/on a genderless Pokemon.
Source: Experience