Okay... So I have a small problem. I'll try to describe it but if that doesn't make sense I'll leave a link to video just in case
So basically whenever there is an event placed on map and it's not visible then following pokemon is trying to jump around it. And I have no idea what to do about it...