public override void OnApply(Unit target) { this.target = target; StatusEffect se = target.statuses.Find(x => x.statusName == "Wet"); //Make sure there is only one stack of wet on a unit at a time. if (se != null) { se.ClearStatus(); //target.statuses.Remove(se); //Destroy(se.gameObject); target.ApplyStatus(Object.Instantiate(stun)); Destroy(gameObject); } else { base.OnApply(target); } }