Someone can explain the mechanics in the core of the auras.

I would like to know for example the mechanics such as the warlock aura called Dark Bargain. How from the event absob in the script ccp is triggered an reduce 50% of the damage taken, until before send final damage to the client. It is that I would like to know all the aura workflow in the core.