Examples of CounterUnlessPaysEffect


Examples of mage.abilities.effects.common.CounterUnlessPaysEffect

  public ManaLeak(UUID ownerId) {
    super(ownerId, 62, "Mana Leak", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{1}{U}");
    this.expansionSetCode = "M11";
    this.color.setBlue(true);
    this.getSpellAbility().addTarget(new TargetSpell());
    this.getSpellAbility().addEffect(new CounterUnlessPaysEffect(new GenericManaCost(3)));
  }
View Full Code Here

Examples of mage.abilities.effects.common.CounterUnlessPaysEffect

        this.expansionSetCode = "ZEN";
        this.color.setBlue(true);

        // Counter target noncreature spell unless its controller pays .
        this.getSpellAbility().addTarget(new TargetSpell(filter));
        this.getSpellAbility().addEffect(new CounterUnlessPaysEffect(new GenericManaCost(2)));
    }
View Full Code Here

Examples of mage.abilities.effects.common.CounterUnlessPaysEffect

}

class FrostTitanAbility1 extends TriggeredAbilityImpl<FrostTitanAbility1> {

  public FrostTitanAbility1() {
    super(Zone.BATTLEFIELD, new CounterUnlessPaysEffect(new GenericManaCost(2)), false);
  }
View Full Code Here

Examples of mage.abilities.effects.common.CounterUnlessPaysEffect

        this.expansionSetCode = "BNG";

        this.color.setBlue(true);

        // Counter target spell unless its controller pays {X}, where X is your devotion to blue.
        this.getSpellAbility().addEffect(new CounterUnlessPaysEffect(new DevotionCount(ColoredManaSymbol.U)));
        this.getSpellAbility().addTarget(new TargetSpell());
    }
View Full Code Here

Examples of mage.abilities.effects.common.CounterUnlessPaysEffect

        this.addAbility(new ChancellorAbility(new ChancellorOfTheAnnexEffect()));

        this.addAbility(FlyingAbility.getInstance());

        // Whenever an opponent casts a spell, counter it unless that player pays {1}.
        this.addAbility(new SpellCastOpponentTriggeredAbility(Zone.BATTLEFIELD, new CounterUnlessPaysEffect(new GenericManaCost(1)), new FilterSpell(), false, SetTargetPointer.SPELL));
    }
View Full Code Here

Examples of mage.abilities.effects.common.CounterUnlessPaysEffect

class ChancellorOfTheAnnexDelayedTriggeredAbility extends DelayedTriggeredAbility {

    private final UUID playerId;

    ChancellorOfTheAnnexDelayedTriggeredAbility (UUID playerId) {
        super(new CounterUnlessPaysEffect(new GenericManaCost(1)));
        this.playerId = playerId;
    }
View Full Code Here

Examples of mage.abilities.effects.common.CounterUnlessPaysEffect

        // Delve
        this.addAbility(new DelveAbility());

        // Counter target spell unless its controller pays {X}.
        this.getSpellAbility().addEffect(new CounterUnlessPaysEffect(new ManacostVariableValue()));
        this.getSpellAbility().addTarget(new TargetSpell());
    }
View Full Code Here

Examples of mage.abilities.effects.common.CounterUnlessPaysEffect

        this.color.setRed(true);
        this.color.setBlue(true);

        // Counter target spell unless its controller pays {X}.  Mindswipe deals X damage to that spell's controller.
        Effect effect = new CounterUnlessPaysEffect(new ManacostVariableValue());
        effect.setText("Counter target spell unless its controller pays {X}.");
        this.getSpellAbility().addEffect(effect);
        this.getSpellAbility().addTarget(new TargetSpell());
        this.getSpellAbility().addEffect(new MindswipeEffect());
    }
View Full Code Here

Examples of mage.abilities.effects.common.CounterUnlessPaysEffect

        this.subtype.add("Drake");
        this.color.setBlue(true);
        this.power = new MageInt(1);
        this.toughness = new MageInt(1);
        this.addAbility(FlyingAbility.getInstance());
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CounterUnlessPaysEffect(new GenericManaCost(1)), new SacrificeSourceCost());
        ability.addTarget(new TargetSpell());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.effects.common.CounterUnlessPaysEffect

        this.expansionSetCode = "CSP";

        this.color.setBlue(true);

        // Counter target spell unless its controller pays {2} plus an additional {2} for each card named Rune Snag in each graveyard.
        Effect effect = new CounterUnlessPaysEffect(new IntPlusDynamicValue(2, new MultipliedValue(new CardsInAllGraveyardsCount(filter), 2)));
        effect.setText("Counter target spell unless its controller pays {2} plus an additional {2} for each card named Rune Snag in each graveyard");
        this.getSpellAbility().addEffect(effect);
        this.getSpellAbility().addTarget(new TargetSpell());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.