When I was in random battles I had a Porygon with download out, special attack boosted, the opponent switched to porygon 2 which also had download, it raised it's attack but then it said trace activated and its attack got a second boost.
EDIT:Looked at an earlier post, looks like it was the...