The question is pretty self-explanatory. Does the changed ability take effect before Magic Bounce can activate, or is the move bounced back to affect your own Pokemon?
On the Bulbapedia Pages it says for both;
>Affected by Magic Coat and Magic Bounce
Both moves are also on the list of moves with Magic Bounce affects on Pokémon Wiki's page.