protected override void OnTriggerEnter2D(Collider2D other) { if (other.tag == "enemy") { Zombie z = other.gameObject.GetComponent <Zombie>(); //fireballs do impact damage at a fraction of their dps damage z.TakeDamage(this.damage * this.impactDmgMod, Zombie.DamageType.Fire); // Fireballs set zombies on fire z.CatchFire(this.damage); Destroy(this.gameObject, 0.12f); } }