Undead and spirits recognize you as kin; they are less likely to target you directly and are not immediately hostile.