Damage Barrier



Damage Barrier creates a barrier around a unit that protect them from incoming damage based on its max capacity.

Definition


Damage Barrier directly reduces damage upon hit based on its damage barrier type.

After Damage Block, other generic damage reductions (e.g. armor, magic resistance, etc.) and damage-negating sources, the Damage Barrier absorb damage values. The damage barrier source applied the earliest will be depleted first. When combined with other higher-priority damage-negating sources (e.g. or ), damage barrier sources do not absorb any damage until the damage-negation sources expire.

Damage Barrier has the following properties:
 * Does not interact with negative damage during damage calculations.
 * Only absorbs flat incoming damage based on their barrier damage type. Has a lower limit of 0.
 * Despite absorbing and negating damage and causing most on-damage effects to not trigger, the damage instance still deals a 0-damage instance.
 * The barrier damage type capacity value is shown on the HUD as Physical /  Magical /  Universal damage barriers respectively.
 * Stacks additively with the same damage-type barrier sources, and independently with other damage-type barrier sources.

Magical Damage Barrier
All Magical Damage Barrier has the   which absorbs magical attack damage and spell damage, including magical damage with the HP Removal flag.

Universal Damage Barrier
All Universal Damage Barrier has the   which absorbs all types attack damage and spell damage, including damage with the HP Removal flag.

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.

Before Barrier Absorption
The following sources may manipulate the damage before damage barriers absorb the damage.

After Barrier Absorption
The following sources manipulate the damage after damage barriers absorb the damage.
 * Incoming damage manipulation sources.
 * Illusion incoming damage amplification.
 * Terminal Damage Block sources.
 * Specifically, this is the only damage negation source that is calculated after damage barriers.

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. Universal damage barriers have the lowest 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 absorb the damage at last.


 * Example 1


 * is affected by Level 4 and  of Pipe of Insight. He then takes  magical damage. Without accounting for magic resistance damage reduction, what is the remaining  magical barrier capacity he has?


 * 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


 * from the previous example is now also affected by a Level 4 . He then takes magical damage.
 * Barrier Capacities: + :   magical barrier, :   universal barrier


 * The magical barrier first absorbs the magical damage based on Damage Barrier priorities.


 * The magical barrier's capacity is depleted, and the remaining  damage will be absorbed by the  universal barrier.


 * The damage instance is completely negated and has a  universal damage barrier with a remaining capacity of.

Барьер 伤害护盾