예제 #1
0
        public override IEnumerable <CardTemplate> GetCards()
        {
            yield return(Card
                         .Named("Citanul Hierophants")
                         .ManaCost("{3}{G}")
                         .Type("Creature Human Druid")
                         .Text("Creatures you control have '{T}: Add {G} to your mana pool.'")
                         .FlavorText(
                             "From deep in the caves beneath the forest, the hierophants planned the druids' raids against the enemy.")
                         .Power(3)
                         .Toughness(2)
                         .ContinuousEffect(p =>
            {
                p.CardFilter = (card, effect) => card.Controller == effect.Source.Controller && card.Is().Creature;
                p.Modifier = () =>
                {
                    var mp = new ManaAbilityParameters
                    {
                        Text = "{T}:  Add {G} to your mana pool.",
                        Priority = ManaSourcePriorities.Creature,
                    };

                    mp.ManaAmount(Mana.Green);

                    return new AddActivatedAbility(new ManaAbility(mp));
                };
            }));
        }
예제 #2
0
    public override IEnumerable<CardTemplate> GetCards()
    {
      yield return Card
        .Named("Citanul Hierophants")
        .ManaCost("{3}{G}")
        .Type("Creature Human Druid")
        .Text("Creatures you control have '{T}: Add {G} to your mana pool.'")
        .FlavorText(
          "From deep in the caves beneath the forest, the hierophants planned the druids' raids against the enemy.")
        .Power(3)
        .Toughness(2)
        .ContinuousEffect(p =>
          {
            p.CardFilter = (card, effect) => card.Controller == effect.Source.Controller && card.Is().Creature;
            p.Modifier = () =>
              {
                var mp = new ManaAbilityParameters
                  {                    
                    Text = "{T}:  Add {G} to your mana pool.",
                    Priority = ManaSourcePriorities.Creature,                    
                  };

                mp.ManaAmount(Mana.Green);

                return new AddActivatedAbility(new ManaAbility(mp));
              };
          });
    }
예제 #3
0
        public override void Apply(ActivatedAbilities abilities)
        {
            _abilities = abilities;

            var ap = new ManaAbilityParameters
            {
                Text = string.Format("{{T}}: Add {0} to your mana pool.",
                                     BasicLandTypeToManaSymbol[_landSubtype]),
            };

            ap.ManaAmount(Mana.GetBasicLandMana(_landSubtype));
            _addedAbility = new ManaAbility(ap);
            _addedAbility.Initialize(OwningCard, Game);

            if (_replace)
            {
                _modifier = new SetList <ActivatedAbility>(new List <ActivatedAbility> {
                    _addedAbility
                });
            }
            else
            {
                _modifier = new AddToList <ActivatedAbility>(_addedAbility);
            }

            _modifier.Initialize(ChangeTracker);
            _abilities.AddModifier(_modifier);
        }
예제 #4
0
        public override void Apply(ActivatedAbilities abilities)
        {
            _abilities = abilities;
              if (_isBasicLand)
              {
            _removedAbility = _abilities.RemoveFirst();
              }

              var basicLandMana = Mana.GetBasicLandMana(_changeTo);

              var ap = new ManaAbilityParameters
            {
              Text = "{{T}}: Add {0} to your mana pool.",
            };

              ap.ManaAmount(basicLandMana);
              _addedAbility = new ManaAbility(ap);
              _addedAbility.Initialize(OwningCard, Game);
              _abilities.Add(_addedAbility);
        }
예제 #5
0
        public override void Apply(ActivatedAbilities abilities)
        {
            _abilities = abilities;
            if (_isBasicLand)
            {
                _removedAbility = _abilities.RemoveFirst();
            }

            var basicLandMana = Mana.GetBasicLandMana(_changeTo);

            var ap = new ManaAbilityParameters
            {
                Text = "{{T}}: Add {0} to your mana pool.",
            };

            ap.ManaAmount(basicLandMana);
            _addedAbility = new ManaAbility(ap);
            _addedAbility.Initialize(OwningCard, Game);
            _abilities.Add(_addedAbility);
        }