SpellEffect.CancelEffect C# (CSharp) Method

CancelEffect() public method

End the effect. By default it will destroy this spell effect.
public CancelEffect ( ) : void
return void
    public virtual void CancelEffect()
    {
        Active=false;
        Component.DestroyImmediate (this);
    }

Usage Example

Ejemplo n.º 1
0
 public override bool UnEquipEvent(int slotNo)
 {
     if (((slotNo == 9) || (slotNo == 10)) && (objInt.item_id != 54))    //Not the ring of humility
     {
         if (SpellEffectApplied != null)
         {
             SpellEffectApplied.CancelEffect();
             return(true);
         }
     }
     return(false);
 }
All Usage Examples Of SpellEffect::CancelEffect