public static void FindAllWithFamilyName(Constants.Spells.SpellClassSet set) { var query = from spell in SpellHandler.ById where spell != null where spell.SpellClassSet == set select spell; foreach (var spell in query) { //Console.WriteLine("{0}: {1} - {2}", spell.Id, spell.Name, spell.FamilyFlags); //Console.WriteLine(); } Console.WriteLine("{0} spells have Name {1}", query.Count(), set); Console.WriteLine(); }
public static void FindSpellWithSpellClassMaskAndSpellClassSet(uint u1, uint u2, uint u3, Constants.Spells.SpellClassSet set) { var query = from spell in SpellHandler.ById where spell != null where ((spell.SpellClassMask[0] & u1) != 0) || ((spell.SpellClassMask[1] & u2) != 0) || ((spell.SpellClassMask[2] & u3) != 0) where spell.SpellClassSet == set select spell; foreach (var spell in query) { Console.WriteLine("{0}: {1} \t {2}{3}{4}", spell.Id, spell.Name, spell.SpellClassMask[0].ToString("X8"), spell.SpellClassMask[1].ToString("X8"), spell.SpellClassMask[2].ToString("X8")); foreach (var effect in spell.Effects) { Console.WriteLine("\t{0} - {1}{2}{3}", effect.EffectType, effect.AffectMask[0].ToString("X8"), effect.AffectMask[1].ToString("X8"), effect.AffectMask[2].ToString("X8")); } Console.WriteLine(""); } }