public ApplyModifiersToPermanents(
     CardSelector selector,
     CardModifierFactory modifier)
 {
     _selector = selector ?? delegate { return(true); };
     _modifiers.Add(modifier);
 }
        public ApplyModifiersToSelfAndToTargets(
      CardModifierFactory self,
      CardModifierFactory target,
      Value toughnessReductionSelf = null,
      Value toughnessReductionTargets = null)
        {
            _selfModifiers.Add(self);
              _targetModifiers.Add(target);

              _toughnessReductionSelf = toughnessReductionSelf ?? 0;
              _toughnessReductionTargets = toughnessReductionTargets ?? 0;
        }
        public ApplyModifiersToSelfAndToTargets(
            CardModifierFactory self,
            CardModifierFactory target,
            Value toughnessReductionSelf    = null,
            Value toughnessReductionTargets = null)
        {
            _selfModifiers.Add(self);
            _targetModifiers.Add(target);

            _toughnessReductionSelf    = toughnessReductionSelf ?? 0;
            _toughnessReductionTargets = toughnessReductionTargets ?? 0;
        }
Exemple #4
0
 public ContinuousEffect(ContinuousEffectParameters p)
 {
     _modifierFactory = p.Modifier;
     _cardFilter      = p.CardFilter;
 }