public OnSpellCast() { Caster = NWScript.OBJECT_SELF.ToNwObject <NwGameObject>(); Spell = NwSpell.FromSpellId(NWScript.GetSpellId()) !; Harmful = NWScript.GetLastSpellHarmful().ToBool(); TargetObject = NWScript.GetSpellTargetObject().ToNwObject <NwGameObject>(); TargetLocation = NWScript.GetSpellTargetLocation(); SpellCastClass = NwClass.FromClassId(NWScript.GetLastSpellCastClass()); Item = NWScript.GetSpellCastItem().ToNwObject <NwItem>(); SaveDC = NWScript.GetSpellSaveDC(); MetaMagicFeat = (MetaMagic)NWScript.GetMetaMagicFeat(); }
public static CreatureTypeFilter Class(NwClass nwClass) { return(new CreatureTypeFilter(CreatureType.Class, nwClass.Id)); }