It doesn't matter what happened externally. If in the same moment, we've already glued ourselves to the good and we protest against the bad and cry out to God:
"Abba [Daddy/Tatty]! I want only You!" -- then the bad deeds are canceled out.
How can you get up?
Tell God: "Abba, I am such a good neshamah [soul], how can it be that I have any tendency to get angry?" [Or whatever negative tendency you want to rid yourself of -- MR]
And the Holy One Blessed be He responds: "You're right. That wasn't you at all. Come with Me and I'll bring you to the place that's right for you."
Our desires [ratzonot] and yearnings [kisufim] are what truly move the creation, the entire world.
Desire [ratzon] is a very, very great act because desire is the greatest force in the creation of the world, higher than thought.
But desire, will, yearning...this is an emotional act. It comes from the heart.
The above quotations can be found on pages 90,100-101, 103.
Rav Ofer Erez's English site is HERE.