Resistances

Concerning Resistances, Damage Reduction and Resistance Penetration

Functions

dmgx()

function dmgx(resist): number;

Defined in: resist/dmgx.ts:15

Converts an amount of resist to a Damage Multiplier.

Parameters

ParameterTypeDescription
resistnumberThe amount of armor or magic resist.

Returns

number

The damage multiplier.

Example

const resist = 100; // 100 armor
const dmg = 100; // 100 damage
const result = dmg * dmgx(resist); // 50 damage

lethalityx()

function lethalityx(lvl): number;

Defined in: resist/lethality.ts:18

Calculates the multiplier to be used for lethality to armor penetration conversion.

Parameters

ParameterTypeDescription
lvlnumberCurrent champion level

Returns

number

The multiplier to be used for converting lethality to flat armor penetration.

Example

const lethality = 100;
const level = 13;

const armorPenFlat = lethality * lethalityx(level); // ~88.9

postReductionResist()

function postReductionResist(
   resist, 
   flatReduction, 
   percentReduction, 
   percentPenetration, 
   flatPenetration): number;

Defined in: resist/post-reduction-resist.ts:22

Calculates the resist after all reductions and penetrations have been applied.

Parameters

ParameterTypeDescription
resistnumberThe initial magic resist or armor.
flatReductionnumberFlat reduction of magic resist or armor.
percentReductionnumberPercent reduction of magic resist or armor.
percentPenetrationnumberPercent penetration of magic resist or armor.
flatPenetrationnumberFlat penetration of magic resist or armor.

Returns

number

The resist after all reductions and penetrations.

Remarks

Magic penetration and magic resist reduction work exactly like armor penetration and armor reduction. penetration and reduction are considered on the target champion in the following order:

  1. Reduction, flat.
  2. Reduction, percentage.
  3. Penetration, percentage.
  4. Penetration, flat.