예제 #1
0
        public override void PayPartial(PayCostParameters p)
        {
            var count = _hasX ? p.X : _count;

            var mp = new ModifierParameters {
                SourceCard = Card
            };

            Card.AddModifier(new AddCounters(
                                 () => new SimpleCounter(_counterType), count), mp);
        }
예제 #2
0
        public override void PayPartial(PayCostParameters p)
        {
            var target = p.Targets.Cost.FirstOrDefault();

            if (target != null)
            {
                target.Card().Sacrifice();
                return;
            }

            Card.Sacrifice();
        }
예제 #3
0
        public override void Pay(PayCostParameters p)
        {
            // if there is a child pay mana cost
            // additional cost will be payed as
            // part of it.
            // if not we must pay it.
            if (!HasPayMana())
            {
                PayAdditionalCost();
            }

            foreach (var cost in _costs)
            {
                cost.PayPartial(p);
            }
        }
예제 #4
0
파일: Cost.cs 프로젝트: callumhutchy/grove
 public virtual void Pay(PayCostParameters p)
 {
     PayAdditionalCost();
     PayPartial(p);
 }
예제 #5
0
파일: Cost.cs 프로젝트: callumhutchy/grove
 public abstract void PayPartial(PayCostParameters p);
예제 #6
0
        public override void PayPartial(PayCostParameters p)
        {
            var card = p.Targets.Cost.FirstOrDefault().Card();

            card.Discard();
        }
예제 #7
0
 public override void PayPartial(PayCostParameters p)
 {
     Card.Exile();
 }
예제 #8
0
 public override void PayPartial(PayCostParameters p)
 {
     Card.Controller.Life -= _getAmount(Card) * p.Repeat;
 }
예제 #9
0
 public override void PayPartial(PayCostParameters p)
 {
     throw new NotSupportedException("Aggregate cost cannot be child of another one.");
 }