public bool HasStatusEffect <T>() where T : AbstractStatusEffect
 {
     return(StatusEffects.Any(item => item.GetType() == typeof(T)));
 }
Beispiel #2
0
 public bool HasEffect(string name) => StatusEffects.Any(x => x.Name == name);