Method | Description | |
---|---|---|
DamageTaken ( this target, float dmg, DamageType dmgType, Unit source, bool throughBKB = false, double minusArmor = 0d, double minusDamageResistancePerc = 0d, double minusMagicResistancePerc = 0d ) : float |
Returns actual damage the unit takes
|
|
Init ( ) : void |
The init.
|
|
SpellDamageTaken ( this target, float dmg, DamageType dmgType, Unit source, string spellName, bool throughBKB = false, double minusArmor = 0d, double minusDamageResistancePerc = 0d, double minusMagicResistancePerc = 0d ) : float |
The spell damage taken.
|
Method | Description | |
---|---|---|
Calculations ( ) : System |
Initializes static members of the Calculations class.
|
public static DamageTaken ( this target, float dmg, DamageType dmgType, Unit source, bool throughBKB = false, double minusArmor = 0d, double minusDamageResistancePerc = 0d, double minusMagicResistancePerc = 0d ) : float | ||
target | this | /// damaged unit /// |
dmg | float | /// amount of damage /// |
dmgType | DamageType | /// Type of damage (Magical/Physical/Pure/Health removal) /// |
source | Unit | /// source of the damage /// |
throughBKB | bool | /// true if the damage pierces magic immunity /// |
minusArmor | double | /// The minus Armor. /// |
minusDamageResistancePerc | double | /// The minus Damage Resistance Perc. /// |
minusMagicResistancePerc | double | /// The minus Magic Resistance Perc. /// |
return | float |
public static SpellDamageTaken ( this target, float dmg, DamageType dmgType, Unit source, string spellName, bool throughBKB = false, double minusArmor = 0d, double minusDamageResistancePerc = 0d, double minusMagicResistancePerc = 0d ) : float | ||
target | this | /// The target. /// |
dmg | float | /// The dmg. /// |
dmgType | DamageType | /// The dmg type. /// |
source | Unit | /// The source. /// |
spellName | string | /// The spell name. /// |
throughBKB | bool | /// The through bkb. /// |
minusArmor | double | /// The minus armor. /// |
minusDamageResistancePerc | double | /// The minus damage resistance perc. /// |
minusMagicResistancePerc | double | /// The minus magic resistance perc. /// |
return | float |