Potion.ApplyAttack C# (CSharp) Method

ApplyAttack() public method

public ApplyAttack ( int damage ) : bool
damage int
return bool
    public override bool ApplyAttack(int damage)
    {
        objInt().Quality-=damage;
            if (objInt().Quality<=0)
            {
                    ChangeType(213,23);//Change to debris.
                    this.gameObject.AddComponent<object_base>();//Add a generic object base for behaviour
                    Destroy(this);//Kill me now.
            }
            return true;
    }