isPathClear isn't working properly

In the level Stranded in the Dunes my hero got stuck trying to shoot a skeleton through a rock, even though I check if there is a clear line to it.

All the arrows just keep bouncing off. This level really hates me…