public static bool IsSpellReadyByName(string name) { if (Enumerable.FirstOrDefault <BarSpell>(Enumerable.Select <KeyValuePair <string, BarSpell>, BarSpell>(Enumerable.Where <KeyValuePair <string, BarSpell> >((IEnumerable <KeyValuePair <string, BarSpell> >)BarMapper.Spells, (Func <KeyValuePair <string, BarSpell>, bool>)(barSpell => barSpell.Key == name)), (Func <KeyValuePair <string, BarSpell>, BarSpell>)(barSpell => barSpell.Value))) != null) { return(BarMapper.IsSpellReady(BarMapper.GetSpellByName(name).SpellId)); } else { return(false); } }
public static bool IsSpellReadyById(int id) { return(BarMapper.IsSpellReady(id)); }