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