For his attack in battle, the stats he takes are determined by the prices for transferring stats. He'll move whatever would be worth the most money to him without making you go below a certain threshold for each stat
oh