Later in this anime episode Ponytas trainer says something like. Ponyta doesnt burn her friends or people she knows.
if team rocket would touch her fire they would get burned//But they didnt say this in the episode
Hope this helps
This is a pic from the episode that is Ponytas trainer and she can ride on it and not get burned