User:Irismus/SandboxPage3

Evasion is mechanic that allows the unit to evade an incoming attack.

All Evasion effects trigger upon landing an attack. This is upon projectile impact and upon attack point for ranged and  melee units respectively. Any attack or ability effects that relies on attacks to hit their targets do not trigger, including most attack modifiers and on-hit effects unless explicitly specified.

True Strike and Accuracy are mechanics that nullifies Evasion.

Equations
All evasion, blind, and accuracy sources are determined by pseudo-random distribution.

Accuracy and Blind sources do not directly increase the attacked unit's evasion value, instead, they increase the effective evasion rate of the attacked unit for blind and lower it for accuracy. For effective evasion rate calculation purposes, multiple sources of evasion and accuracy stack diminishingly with each other respectively, while blind sources stack additively with each other and multiplicatively with evasion.

The total evasion displayed on the HUD is defined as: Total Evasion = 1 - $$\prod_{i=1}^{n}$$(1 - Evasion i )

The total blind is defined as: Total Blind = $$\sum_{i=1}^{n}$$Blind i

The total accuracy is defined as: Total Accuracy = 1 - $$\prod_{i=1}^{n}$$(1 - Accuracy i ) (1 - Total Accuracy) ×
 * Incoming Attacks
 * Accuracy Sources or True Strike Sources proc
 * Evasion
 * Blind
 * Melee Buffer Range check
 * Attack Hits

Effective Evade Chance = 1 - (1 - Total Evasion) × (1 - Total Blind) ) × (1 - Melee Buffer Range Miss)

The formula written above is color-coded in sections, where blue indicates the chance that accuracy does not proc, red indicates the total blind chance, and green for evasion.

Incoming Attacks Hit Chance = 1 - Effective Evasion Rate

Miss
Upon missing an attack on an enemy, a red floating text appears, reading, visible to the attacking player only. The enemy, who was just missed by an attack, also sees a floating text, but in white and reading  instead. Furthermore, a missed attack does not play any of the attack impact sounds.

Attack Range Type
For melee units, if the target is farther than  range more than the melee unit's attack range, the attack 100% misses, True Strike does not guarantee hits on units outside of the buffer range.

Uphill Miss Chance
For ranged units without Flying Movement, the uphill miss chance is conditionally applied upon a ranged attack projectile impact and not on the unit's attack point — it causes % of the ranged attacks to miss if the attacking unit is at a lower terrain level as the target, regardless of the terrain level difference. A unit is considered to be on higher elevated terrain when it is no longer visible to the player due to the terrain. When an enemy stands on a relatively higher ramp, uphill miss chance applies whether if the attacked unit is within vision or not.

This means moving up onto an elevated area after an attack projectile has been launched may cause the projectile to miss on impact to uphill miss chance, even when both units were on the same ground level as the projectile was launched.

Uphill miss chance is considered an evasion source, it does not apply to units and units with flying movement.

Blind
Blind is a debuff that makes a unit miss upon attacking other units and sources of blind effects stack additively with each other, rendering an affected unit unable to land any attack. Although a combination of different blind sources can exceed 100%, for effective evasion rate calculation convenience, they can stack up to a maximum value of 100%.

Total Blind is defined as:

Total Blind = $$\sum_{i=1}^{n}$$Blind i





Items
The following items grants the wielder an evasion bonus.

Accuracy
Accuracy is applied as a debuff on the affected target. It does not directly increase the attacked unit's evasion value. For calculation purposes, the accuracy multiplier can be considered as an evasion source as well.

Total Accuracy = 1 - $$\prod_{i=1}^{n}$$(1 - Accuracy i )

True Strike sources can also be considered as outgoing accuracy.

True Strike
True Strike prevents the unit's attacks from missing, negating both evasion and blind sources against any other units, including ward-type units and ally units, except attacks against buildings. However, it does not apply an Accuracy debuff on the attacked unit.

For ranged units, although True Strike prevents the unit's attack from missing, attack projectiles of ranged units with True Strike can still be disjointed. For melee units, it also prevents the attacking unit's attack from missing when the attacked target moves more than  range away upon its attack point.

All attacks against Runes and against destroyable items have True Strike.

Outgoing
The following accuracy sources grant a chance-based conditional True Strike that proc on the attack.

description

Stacking
Multiple sources of evasion stack diminishingly with each other, while sources of blind effects stack additively with each other and multiplicatively with evasion.

All evasion and accuracy sources are determined by pseudo-random distribution.

While the theoretical chance to evade an attack is diminishing, each source of evasion increases effective HP against physical attacks more than the last due to the mechanic's exponential nature (e.g. Applying a 50% evasion source while already having 35% evasion still doubles your effective hit points against physical attacks).

A more concrete way of thinking about evasion stacking is that for an attack to bypass an evasion stack and hit, the attack should bypass each source of evasion in sequence. Only if all sources of evasion fail can the attack deal attack damage. In this way, evasion's effectiveness can be understood to be stacking multiplicatively — while the actual chance to evade is diminishing, each source of evasion increases effective HP against physical attacks more than the last due to this multiplicative nature.

Sequentially, a combination of evasion sources that are individually less than 100% is also less than 100%. There are currently a few abilities that grant 100% evasion (e.g. and ).

Unlike evasion, a combination of different blind sources can exceed 100%, rendering an affected unit unable to land any attack.

Multiple Evasion Sources

 * Example 1
 * Interactions between incoming attacks and Evasion.
 * Incoming attacks to hit 's wielder is %, because the item grants % evasion.


 * within the radius has  evasion. Without any other evasion negating sources, all incoming attacks to hit  are missed if the Self is within the radius.


 * Example 2a
 * Evasion sources stacks diminishingly.
 * An enemy is attacking who has a  and  . What are the chances of incoming attacks hitting ?


 * Evasion sources:


 * Effective Evasion Rate
 * = 1 - (1 - Total Evasion)
 * = 1 - (1 - ) × (1 - )


 * Incoming attacks hit chance
 * = 1 - Effective Evasion Rate
 * = 1 -


 * in this example has % chance of getting hit by incoming attacks, because she has % evasion.


 * Example 2b
 * Blind sources stack additively of itself, then stacks diminishingly with evasion sources.
 * An enemy attacking from the previous example is now affected by  and . What are the chances of incoming attacks hitting ?


 * 's total evasion:


 * Blind sources:


 * Effective Evasion Rate
 * = 1 - [1 - Total Evasion] × [ 1 - Total Blind ]
 * = 1 - [(1 - ) × (1 - )] × [ 1 - ( + ) ]
 * = 1 - [] × [ ]


 * Incoming attacks hit chance
 * = 1 -


 * For this example, the total blind is marked in red.
 * Although 's total evasion did not change, the blind applied to the enemy increases 's effective evasion rate to %. Therefore, has % chance of getting hit by incoming attacks.


 * Example 3a
 * Accuracy Calculations
 * The enemy is now affected by two unknown accuracy sources of % and % respectively. What is her current accuracy chance against evasion?


 * Total Accuracy
 * = 1 - (1 - ) × (1 - )


 * The enemy's attacks have a total accuracy of %.


 * Example 3b
 * Stacking Evasion, Blind and Accuracy
 * The enemy of Example 3a now attacks from the previous example.
 * What are the chances of incoming attacks hitting Phantom Assassin?


 * 's total evasion chance =
 * The enemy total accuracy chance =


 * 's Effective Evasion Rate
 * = Total Accuracy -
 * = (1 - ) ×


 * Incoming attacks hit chance
 * = 1 -


 * For this example, the total accuracy and total evasion are marked in blue and red respectively. 's total evasion does not change.
 * The incoming attacks' hit chance is % only when accounting for both parties chances to accuracy and evasion.


 * Example 3c
 * 100% Accuracy
 * from the previous example is now affected by that applies a 100% accuracy debuff on her. How does accuracy affect the effective evasion rate calculation?


 * 's total evasion chance =


 * Incoming attacks to hit chance:
 * = 1 - (1 - 1 ) ×
 * = 1


 * For this example, the total accuracy is marked in blue.
 * 100% accuracy reduces 's effective evasion rate to none. She has a 100% chance of getting hit by incoming attacks regardless of her current evasion rate.
 * Therefore, the hit chance for an incoming attack has a range of 0 to 1, if the hit chance is 0 the attack will always be evaded; if the hit chance is 1 the attack will always hit, dealing its attack damage.

Recent Changes
Уклонение 闪避