Thanks for the response. I replaced the method with the code you posted and it works fine so far- enemies are not detecting the player on the sections of grass any more.
My plan is to implement this new method into my game and test it more thoroughly over the next couple of days before marking this issue as resolved.
My plan is to implement this new method into my game and test it more thoroughly over the next couple of days before marking this issue as resolved.