示例#1
0
 public static void Add(uint mobId, WoWSpellSchool school)
 {
     if (!ImmuneNpcs.ContainsKey(mobId))
     {
         ImmuneNpcs.Add(mobId, school);
     }
 }
示例#2
0
 public static void Add(uint mobId, WoWSpellSchool school)
 {
     if (!ImmuneNpcs.ContainsKey(mobId))
     {
         ImmuneNpcs.Add(mobId, school);
     }
 }
        public static void Add(uint mobId, WoWSpellSchool school, WoWSpell spell = null)
        {
            if (spell != null && s_ignoredSpells.Contains(spell.Id))
            {
                return;
            }

            if (!ImmuneNpcs.ContainsKey(mobId))
            {
                ImmuneNpcs.Add(mobId, school);
            }
        }
示例#4
0
 public static bool IsImmune(this WoWUnit unit, WoWSpellSchool school)
 {
     return(unit != null && ImmuneNpcs.ContainsKey(unit.Entry) && (ImmuneNpcs[unit.Entry] & school) > 0);
 }
 public static bool IsImmune(this WoWUnit unit, WoWSpellSchool school)
 {
     return unit != null && ImmuneNpcs.ContainsKey(unit.Entry) && (ImmuneNpcs[unit.Entry] & school) > 0;
 }