public override void RemoveEffect(UnitBase unit) { Logging.Log("Removing Effects!"); //unit.CureAilments(runtimeEffects); //runtimeEffects.ForEach(unit.CureAilment); foreach (var effect in runtimeEffects) { if (effect.GetType() != typeof(StatChange)) { unit.CureAilment(effect); } else { ((StatChange)effect).RemoveMod(); } } }