wait, doesn't it like, break the game too? Since it kinda defeats the point of heading for actual gym battles...
unless it's scripted so that only after certain post-battle dialogue flags have been checked that other shit triggers, I don't know how ya'll handle that...