bool IsImmunity(ImmuneData targetDataType, ImmuneData dataType) { if (targetDataType.IsIgron) { return(false); } return((targetDataType.GainType == dataType.GainType || dataType.GainType == ImmuneGainType.All) && (targetDataType.ImmuneType == dataType.ImmuneType || dataType.ImmuneType == ImmuneType.All)); }
public bool IsImmunity(ImmuneData effectDataType) { bool isImmunity = false; for (int i = 0; i < _datas.Count; i++) { if (IsImmunity(effectDataType, _datas[i])) { isImmunity = true; } } return(isImmunity); }
public void RemoveImmunity(ImmuneData effectDataType) { _datas.Remove(effectDataType); }
public void AddImmunity(ImmuneData effectDataType) { _datas.Add(effectDataType); }