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); } }
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; }