Table of Contents

Method DamageResistance

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

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

damageType DamageType

The type of damage to resist.

amount int

The damage to remove from each attack.

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 resistance effect only apply to ranged attacks.

Returns

Effect