public int GetManaCost(Spells spellType) { int returnValue = 0; foreach (Spell s in spellReference) { if (s.Type == spellType) { returnValue = s.Mana; } } return returnValue; }