Then what is left for you is some initiative, start to debug a little, check whether getPathMatching
is even used for your monster (who knows, it's some 3rd party distribution) and if so, then try to modify dirNeighbors
and allNeighbors
within it to see whether anything changes in monster behavior. You might even want to print something to see whether path is calculated for a specific monster. Continue to debug until you find the issue or at least until you find some sort of hint to where the issue might be.
It's really not that hard and the solution to your problem is probably around the corner, but it does require some work from your side.