- Mana abilities/triggerers do not use the stack in most cases.

http://magiccards.info/rule/605-mana-abilities.html
Started process to rectify this issue.
This commit is contained in:
Jeff 2015-03-01 21:24:13 -06:00
parent 1276b1c91c
commit 20c75735bb
3 changed files with 7 additions and 1 deletions

View file

@ -129,6 +129,7 @@ class ExtraplanarLensTriggeredAbility extends TriggeredAbilityImpl {
public ExtraplanarLensTriggeredAbility() {
super(Zone.BATTLEFIELD, new AddManaOfAnyTypeProducedEffect());
this.usesStack = false;
}
public ExtraplanarLensTriggeredAbility(final ExtraplanarLensTriggeredAbility ability) {

View file

@ -74,7 +74,7 @@ public class Valleymaker extends CardImpl {
this.addAbility(ability);
// {tap}, Sacrifice a Forest: Choose a player. That player adds {G}{G}{G} to his or her mana pool.
Ability ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddManaToManaPoolTargetControllerEffect(new Mana(0,3,0,0,0,0,0), "chosen player"), new TapSourceCost());
Ability ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddManaToManaPoolTargetControllerEffect(new Mana(0,3,0,0,0,0,0), "chosen player"), new TapSourceCost(), false);
ability2.addCost(new SacrificeTargetCost(new TargetControlledPermanent(filter2)));
ability2.addTarget(new TargetPlayer(1, 1, true));
this.addAbility(ability2);

View file

@ -52,6 +52,11 @@ public class SimpleActivatedAbility extends ActivatedAbilityImpl {
public SimpleActivatedAbility(Zone zone, Effect effect, Cost cost) {
super(zone, effect, cost);
}
public SimpleActivatedAbility(Zone zone, Effect effect, Cost cost, boolean usesStack) {
super(zone, effect, cost);
this.usesStack = usesStack;
}
public SimpleActivatedAbility(SimpleActivatedAbility ability) {
super(ability);