Example #1
0
        public bool Has(CommonEffectType ce)
        {
            foreach (CommonEffect c in commonEffects)
            {
                if (c.effectType == ce)
                {
                    return(true);
                }
            }

            return(false);
        }
Example #2
0
            public CommonEffect(CommonEffectType t, bool m = false, int v = 0, bool o = false)
            {
                effectOnOpponent = o;

                may = m;

                effectType = t;

                valueName = ValueName.None;

                effectValue = v;
            }