Anvil
Loading...
Searching...
No Matches
Anvil.API.Events.SpellEvents.OnSpellCast Class Referencesealed
+ Inheritance diagram for Anvil.API.Events.SpellEvents.OnSpellCast:
+ Collaboration diagram for Anvil.API.Events.SpellEvents.OnSpellCast:

Properties

NwGameObjectCaster = NWScript.OBJECT_SELF.ToNwObject<NwGameObject>() [get]
 Gets the caster of this spell.
 
bool Harmful = NWScript.GetLastSpellHarmful().ToBool() [get]
 Gets a value indicating whether this spell is considered harmful.
 
bool IsSpontaneousCast = NWScript.GetSpellCastSpontaneously().ToBool() [get]
 Gets if this spell was cast spontaneously.
 
NwItemItem = NWScript.GetSpellCastItem().ToNwObject<NwItem>() [get]
 Gets the item that was used to cast the spell. Returns null if no item was used to cast this spell.
 
MetaMagic MetaMagicFeat = (MetaMagic)NWScript.GetMetaMagicFeat() [get]
 Gets the type of metamagic used on the last spell.
 
int SaveDC = NWScript.GetSpellSaveDC() [get]
 Gets the saving throw DC required to save against the effects of this spell.
 
NwSpell Spell = NwSpell.FromSpellId(NWScript.GetSpellId())! [get]
 Gets the spell that was cast.
 
NwClassSpellCastClass = NwClass.FromClassId(NWScript.GetLastSpellCastClass()) [get]
 Gets the class that the caster cast the spell as.
 
int SpellLevel = NWScript.GetLastSpellLevel() [get]
 Gets the level of the spell that was cast.
 
LocationTargetLocation = NWScript.GetSpellTargetLocation() [get]
 Gets the targeted location of this spell.
 
NwGameObjectTargetObject = NWScript.GetSpellTargetObject().ToNwObject<NwGameObject>() [get]
 Gets the object being targeted by this spell, otherwise returns null if the caster targeted the ground.
 
- Properties inherited from Anvil.API.Events.IEvent

The documentation for this class was generated from the following file: