Hi
You could use a custom NNConstraint class to prevent the same node being chosen as the one the player is at.
This page might also be of interest: https://arongranberg.com/astar/docs/turnbased.html
Also see this thread for some code examples Nearest walkable with ITraversalProvider