Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 public static CreatureTypeFilter Class(NwClass nwClass)
 {
     return(new CreatureTypeFilter(CreatureType.Class, nwClass.Id));
 }