tsume
The Pervy Sage
it should never take half an hour to make a spot at the gym.
find the pokemon with a type advantage on its attack that is a lower CP than the FIRST pokemon in the gym
start off the fight by dodging the first two attacks.
then hit it once, and wait for the gym to attack again, and dodge that.
then hit it twice and wait to dodge again.
by then you should know if you can get a three attacks in a row in before you dodge.
use your charge attack after the gym pokemon has used its charge attack.
that should be all you need to beat the first pokemon. run from the second.
heal your lower CP pokemon.
give Gym 500 prestige.
repeat this process, but this time you know how many attacks you can get in.
still dodge the first two attacks.
4 of those battles should give you a spot in the gym. (its always about 2000 prestige to add to a gym at least up until level 9 that is the highest gym I have added too)
Remember, the AI will always give 2 attacks in a row at the start of the battle, then only attack every 2 seconds. your pokemon have different attack speeds, this is why I suggested the way to learn how many attacks you can get in before you need to dodge.
and yes there is a way you can finish an entire battle without taking a single point of damage. but most of the time, you will not dodge the entire charge attack as its duration is longer than the dodge duration.
the latest Trainer Tips video explains this process much better.
Video explanation
[video=youtube;HpNzX8ICi90]https://www.youtube.com/watch?v=HpNzX8ICi90[/video]