Method DamageResistance
DamageResistance(DamageType, int, int, bool)
Creates an effect that resists a constant amount of damage from a specific damage type.
public static Effect DamageResistance(DamageType damageType, int amount, int totalAbsorb = 0, bool rangedOnly = false)
Parameters
damageTypeDamageTypeThe type of damage to resist.
amountintThe damage to remove from each attack.
totalAbsorbintThe total amount of damage to absorb, before the effect is removed (0 = infinite).
rangedOnlyboolSet to true to have this damage resistance effect only apply to ranged attacks.