Method DamageReduction
DamageReduction(int, DamagePower, int, bool)
Creates an effect that resists a constant amount of damage from a physical attack with a certain magical power.
public static Effect DamageReduction(int amount, DamagePower damagePower, int totalAbsorb = 0, bool rangedOnly = false)
Parameters
amountintThe damage to remove from each attack.
damagePowerDamagePowerThe max enchantment/power bonus of the weapon this effect will resist.
totalAbsorbintThe total amount of damage to absorb, before the effect is removed (0 = infinite).
rangedOnlyboolSet to true to have this damage reduction effect only apply to ranged attacks.