Glad it helped you :)
This is a really old guide of mine, so I don't remember most of the stuff in it anymore. But from what I recall, the naming isn't exactly intuitive. A disabled cell means that there's something occupying it, so we should not use it won't be used as a valid path for the path finding.
When we are right next to the player, then we can check if the cells are connected, and if they are, instead of moving, the enemy will be attacking the player.
I hope this helps!