It seems pretty clear that at some point in the past, Shadowheart was NOT evil. She probably suffered some terrible loss, and thus was easy pickings for recruitment by the church of Shar, the Lady of Loss. Then they wiped her memory and brainwashed her into their way of thinking, so now she's evil, but maybe she doesn't want to be.