Method CastSpell
CastSpell(IPCastSpell, IPCastSpellNumUses)
Adds a cast spell property with a limited number of uses. Allowed spells depend on item type; higher spell level increases item cost.
public static ItemProperty CastSpell(IPCastSpell spell, IPCastSpellNumUses uses)
Parameters
spellIPCastSpellThe spell to cast.
usesIPCastSpellNumUsesThe number of uses.
Returns
- ItemProperty
The created item property.