public Effect GetEffect(EffectSchool schl) { foreach (var eff in activeEffects) { if (eff.School == schl) return eff; } return null; }
public List<Effect> GetAllEffects(EffectSchool schl) { List<Effect> effcts = new List<Effect> (); foreach (var eff in activeEffects) { if (eff.School == schl) effcts.Add (eff); } return effcts; }
public bool HasEffect(EffectSchool schl) { foreach (var eff in activeEffects) { if (eff.School == schl) return true; } return false; }