mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
- 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:
parent
1276b1c91c
commit
20c75735bb
3 changed files with 7 additions and 1 deletions
|
@ -129,6 +129,7 @@ class ExtraplanarLensTriggeredAbility extends TriggeredAbilityImpl {
|
|||
|
||||
public ExtraplanarLensTriggeredAbility() {
|
||||
super(Zone.BATTLEFIELD, new AddManaOfAnyTypeProducedEffect());
|
||||
this.usesStack = false;
|
||||
}
|
||||
|
||||
public ExtraplanarLensTriggeredAbility(final ExtraplanarLensTriggeredAbility ability) {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -53,6 +53,11 @@ public class SimpleActivatedAbility extends ActivatedAbilityImpl {
|
|||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue