public bool Has(CommonEffectType ce) { foreach (CommonEffect c in commonEffects) { if (c.effectType == ce) { return(true); } } return(false); }
public CommonEffect(CommonEffectType t, bool m = false, int v = 0, bool o = false) { effectOnOpponent = o; may = m; effectType = t; valueName = ValueName.None; effectValue = v; }