public List <IBuff> GetBuffsWithName(string buffName) { lock (_buffsLock) { return(BuffList.FindAll(b => b.IsBuffSame(buffName))); } }
public void RemoveBuffsWithName(string buffName) { lock (_buffsLock) { BuffList.FindAll(b => b.IsBuffSame(buffName)).ForEach(b => b.DeactivateBuff()); } }