Table of Contents

Method DamageImmunity

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

DamageImmunity(IPDamageType, IPDamageImmunityType)

Grants damage immunity for the specified damage type and percentage. Only certain damage types are valid (Acid, Bludgeoning, Cold, Electrical, Fire, Piercing, Slashing, Sonic).

public static ItemProperty DamageImmunity(IPDamageType damageType, IPDamageImmunityType immunityType)

Parameters

damageType IPDamageType

The damage type.

immunityType IPDamageImmunityType

The immunity percentage category.

Returns

ItemProperty

The created item property.