Combat directional pivoting

I am fairly new to Runescape ( less then 1 week ) but i noticed a miniature rs bug that makes the game look very bad. When you attack an opponent behind a barrier your character faces them and slides toward them around the barrier.

A fix for this is detect the path you character needs to take in order to reach the opponent and add or subtract 90 degrees depending on the direction.

Of course Jagex would need to do a more sophisticated algorithm for this but i do not have enough information to write up an actual formula. Im pretty sure Jagex would need to use arcs.Sincerely, Ram.