Can't hit hostile NPC's when they are under a tent

That one is known issue friend