As long as Ditto is your Active Pokémon, its maximum HP is the same as your opponent’s Active Pokémon. Ditto can use the attacks of that Pokémon as its own. (You still need the necessary Energy to use each attack.) If that Pokémon is no longer your opponent’s Active Pokémon, choose 1 of your opponent’s Active Pokémon for Ditto to copy.
Diamond & Pearl—Legends Awakened