Example #1
0
 public bool IsSuppressed(Buff buff)
 {
     if (!this.m_Buffs.Contains(buff.Blueprint) && !UnitPartBuffSuppressSaved.GetValues(buff.Context.SpellDescriptor).Any <SpellDescriptor>((Func <SpellDescriptor, bool>)(d => this.m_SpellDescriptors.Contains(d))))
     {
         return(this.m_SpellSchools.Contains(buff.Context.SpellSchool));
     }
     return(true);
 }
Example #2
0
 public void Suppress(SpellDescriptor spellDescriptor)
 {
     foreach (SpellDescriptor spellDescriptor1 in UnitPartBuffSuppressSaved.GetValues(spellDescriptor))
     {
         this.m_SpellDescriptors.Add(spellDescriptor1);
     }
     this.Update();
 }
Example #3
0
 public void Release(SpellDescriptor spellDescriptor)
 {
     foreach (SpellDescriptor spellDescriptor1 in UnitPartBuffSuppressSaved.GetValues(spellDescriptor))
     {
         this.m_SpellDescriptors.Remove(spellDescriptor1);
     }
     this.Update();
     this.TryRemovePart();
 }