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)); }; })); }
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)); }; }); }
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); }
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); }