It can be very anoying to encounter this when you'd think you be safe behind something but you character would walk towards the npc or it would walk around the spot to hit you. You can safespot but it takes some small effort to find on wich possition it works or doesnt.