private IEnumerator TimeBasedModifierCountdown(BaseAttribute sender, TimeBasedModifier modifier) { while (modifier.RemainingTime > 0) { yield return(null); } sender.RemoveModifier(modifier); }