Example #1
0
 public void DelBuff(BuffEffectTypes type)
 {
     foreach (var buff in buffDict.Values)
     {
         if (BuffBook.HasEffect(buff.Id, type))
         {
             buffDict.Remove(buff.Id);
             return;
         }
     }
 }
Example #2
0
 public bool HasBuff(BuffEffectTypes type)
 {
     foreach (var buff in buffDict.Values)
     {
         if (BuffBook.HasEffect(buff.Id, type))
         {
             return(true);
         }
     }
     return(false);
 }