Table of Contents

Method DamageReduction

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

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

amount int

The damage to remove from each attack.

damagePower DamagePower

The max enchantment/power bonus of the weapon this effect will resist.

totalAbsorb int

The total amount of damage to absorb, before the effect is removed (0 = infinite).

rangedOnly bool

Set to true to have this damage reduction effect only apply to ranged attacks.

Returns

Effect