Added max_distance argument to teleport and teleportnear skills