/// <summary> /// Execute effects when the turn ends /// </summary> public void ExecuteTurnEndEffects() { for (int i = 0; i < effects.Count; i++) { EffectInstance eff = effects[i]; eff.OnTurnEnd(); // Prevent skipping over any effects if an effect is removed if (!effects.Contains(eff)) { i--; } } }