While killing monsters in the game i noticed when i used safe spots to use ranged or magic to kill them the npc is able to hit you 1 or more squares in the distance. It happends when you walk towards it and still have distance between youre character and npc.