//determines what the projectile does when it hits a trigger collider
 void OnTriggerEnter(Collider col)
 {
     if (col.tag != "Item")
     {
         ObstructionController other = col.GetComponent <ObstructionController>();
         if (other.player)
         {
             other.GetComponent <PlayerStatController>().DealDamage(damage);
         }
     }
 }
    //what the projectile does when hitting a trigger collider
    void OnTriggerEnter(Collider col)
    {
        if (col.tag != "Item")
        {
            ObstructionController other = col.GetComponent <ObstructionController>();
            if (other.enemy)
            {
                other.GetComponent <EnemyStatController>().ApplyDamage(effectController.GetDamage(other.GetComponent <EnemyStatController>()), effectController.GetDamageType(), effectController.GetCrit(), false);
                other.GetComponent <EnemyController>().ApplyImpact(effectController.GetImpact());
                effectController.ApplyEffects(other);
                if (chaining && chainingTargets > 0)
                {
                    guided      = false;
                    targetFound = false;
                    effectController.ModifyDamage(0.67f);
                    if (FindOtherTarget(other.gameObject) == false)
                    {
                        seeking = true;
                    }
                    else
                    {
                        DestroyThis();
                    }
                }
            }
            else if (other.boss)
            {
                other.GetComponent <BossStatController>().ApplyDamage(effectController.GetDamage(other.GetComponent <BossStatController>()), effectController.GetDamageType(), effectController.GetCrit(), false);
                effectController.ApplyEffects(other.GetComponent <BossStatController>());
                if (chaining && chainingTargets > 0)
                {
                    guided      = false;
                    targetFound = false;
                    effectController.ModifyDamage(0.67f);
                    if (FindOtherTarget(other.gameObject) == false)
                    {
                        seeking = true;
                    }
                    else
                    {
                        DestroyThis();
                    }
                }
            }
            else if (other.minion)
            {
                other.GetComponent <EyerisMinionController>().ApplyDamage(effectController.GetDamage(other.GetComponent <BossStatController>()), effectController.GetDamageType(), effectController.GetCrit(), false);
                effectController.ApplyEffects(other.GetComponent <EyerisMinionController>());
                if (chaining && chainingTargets > 0)
                {
                    guided      = false;
                    targetFound = false;
                    effectController.ModifyDamage(0.67f);
                    if (FindOtherTarget(other.gameObject) == false)
                    {
                        seeking = true;
                    }
                    else
                    {
                        DestroyThis();
                    }
                }
            }

            if (other.obstructing)
            {
                if (piercing && pierceCount > 0 && other.piercable)
                {
                    if (chaining && chainingTargets > 0)
                    {
                        chainingTargets--;
                    }
                    else
                    {
                        pierceCount--;
                        seeking = false;
                    }
                }
                else if (chaining && chainingTargets > 0)
                {
                    chainingTargets--;
                }
                else
                {
                    DestroyThis();
                }
            }
        }
    }