public static bool HasStatusEffect <T>(this IEffectHolder holder) where T : StatusEffect { return(holder.GetStatusEffects().Any(statusEffect => statusEffect is T)); }
public static bool HasStatusEffect(this IEffectHolder holder, Func <StatusEffect, bool> match) { return(holder.GetStatusEffects().Any(match)); }