Ditto watched his opponent in the air, and dodged to the side when he saw the attack, but the stars turned and hit him anyway. Swift didn't do a lot of damage, compared to other attacks, but it never misses. After recovering, he couldn't think of a way to get up to Skarmory. He looked towards Cody, hoping for trainer advice. "Riolu?" He said pitifully.
Cody gave it a little thought. He couldn't think of any ranged attack a Riolu might know, off the top of his head, but he thought of something else.
"Look behind you. Use Quick Attack. Understand?" He said. Skarmory was in the air, but behind Riolu was the cabin of the ship, which riolu could use to get some height. He could jump on the rail, leap to a perch, and launch from there at Skarmory. Using Quick Attack, he could do this fast enough that Skarmory wouldn't have much time to react. Ditto understood what Cody meant, and pulled it off, launching into the air just above Skarmory to try to grab its wing and slam it to the ground.