Well, me first and covet use a "random" move of your opponent, so, the move used is not really a normal type move, maybe is that why it's working. But actually i'm not sure if it's to work in this way or probably just don't work in ghost pokemons too. So let's wait until anyone bigger than me explain...