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.

Overview
Damage Barrier can reduce damage but different from Damage Block and Damage Manipulation.

Damage Barrier has the following properties:
 * Damage Barrier does not affect the negative damage during the Damage Process sequence.
 * Damage Barrier can only reduce the incoming damage.
 * Damage Barrier has the lower limit of block value. Genenally, the lower limit is 0.
 * Damage Barrier can absorb a flat amount of damage based on their damage type classification.
 * Barrier capacity value is shown in the HUD by different color according to the damage type.
 * Damage Barrier which belongs to the same type can stack addictively.
 * HUD will display the sum of capacity value when stacking.
 * Damage Barrier that gains earlier will be depleted first.
 * Damage Barrier which belongs to different types can affect unit simultaneously.And all of them work independently.
 * Universal Damage Barriers has the lowest priority. It means that its capacity is depleted at last when combined with the other types Damage Barrier.

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.

Damage barriers come in 3 variations: Physical Damage Barriers, blocking only physical damage, Magical Damage Barriers, blocking only magical damage, and Universal Barriers, blocking all damage types.

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.
 * Terminal 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 lower priority in the group of damage barriers, its capacity is depleted last 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 at last.


 * 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


 * Magical barrier absorbs the damage first:

Magical barrier reached its limit and bursts. damage remains.


 * Now, Aphotic Shield kicks in afterwards, being a universal barrier:


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

Preventing on-damage effects
Барьер 伤害护盾