Damage Barrier



Damage Barrier is a mechanic that create a barrier around a unit that protect the unit from incoming damage until reaching their max capacity. Damage barriers come in 3 variations: Magical Damage Barriers, blocking only magical damage, Physical Damage Barriers, blocking only physical damage, and Universal Barriers, blocking all damage types.

Definition
Damage barriers absorb a flat amount of damage based on their damage type classification. The barrier absorbs the damage after it is reduced by armor and magic resistance, after most damage negating effects, but before generic damage reductions and before Damage Block.

Mechanics
Damage Barriers completely negate the incoming damage they block, so that most on-damage effects do not trigger, however, a 0 damage instance is still registered.

The barriers block damage after magic resistance and armor, but before generic incoming damage manipulation. Since barriers interact with incoming damage, outgoing damage manipulation is always applied first.


 * Example 1


 * has a health damage barrier, and gets hit by  magical damage. How much actual magical damage will he take?
 * Base magic resistance:


 * Magical Damage Taken
 * = × (1 - )-


 * will take magical damage in this example.


 * Example 2
 * additional has % generic incoming damage reduction applied on him. How much actual magical damage will he take?


 * = ( × (1 - )- ) * (1- )

This means the exceeding magical damage is not absorbed and the damage is reduced by generic incoming damage reduction to  magical damage. In this example, takes  magic damage. This means a barrier is less effective when combined with generic incoming damage reduction.

The following abilities and mechanics manipulate the damage before damage barriers absorb the damage.
 * Armor
 * Magic Resistance

The following abilities and mechanics manipulate the damage after damage barriers absorb the damage, meaning damage barriers first absorb the damage, and then the remaining damage is affected by these.
 * Damage Block
 * Illusion incoming damage amplification

Stacking
A unit can be affected by all 3 types of damage barriers at once, all working independently. Multiple sources of the same type of damage barriers stack additively. Uinversal damage barriers have the higher priority in the group of damage barriers, its capacity is depleted first when combined with the other types. This means if a unit is affected by a universal barrier and a magical/physical barrier, and then takes magical/physical damage, the universal barrier will block the damage first.


 * Example 1


 * is affected by Level 4 and  of Pipe of Insight. He then takes  magical damage. For simplicity's sake this example does not consider other sources of damage manipulation (e.g. Magic Resistance).
 * Barrier capacity: +  =


 * Magical damage taken:


 * Since incoming magical damage is less than all individual barriers. Both and  will now have  and  remaining magic barrier capacity respectively in this example.


 * Example 2
 * is additionally affected by level 4 . He then takes magical damage.
 * Barrier capacities: + :  magical barrier, :  universal barrier


 * Aphotic Shield being an universal barrier absorbs the damage first:

Aphotic Shield reached its limit and bursts. damage remains.


 * Now, Flame Guard kicks in afterwards, being a magical barrier:


 * The damage has been completely negated and remains with a magical damage barrier with a remaining capacity of.

Барьер