So..in icefall cave, in this section, you can only go down the ladder or one of the two holes, however..
if you have battled this trainer before then he blocks the way to the exit
the only option out of this area is this ladder here, which leads in the area of image no. 1..
the weird thing is that the trainer isn't going back to his position (probably because only ladders and holes are involved and not caves). Essentially the player is stuck