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; _modifier = new AddToList <ActivatedAbility>(_activatedAbility); _modifier.Initialize(ChangeTracker); _activatedAbility.Initialize(OwningCard, Game); _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); }
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); }
public override void Apply(ActivatedAbilities abilities) { _abilities = abilities; _activatedAbility.Initialize(OwningCard, Game); _abilities.Add(_activatedAbility); }