public SpellBlast(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{X}{U}"); // Counter target spell with converted mana cost X. this.getSpellAbility().addEffect(new CounterTargetEffect().setText("counter target spell with converted mana cost X")); this.getSpellAbility().setTargetAdjuster(SpellBlastAdjuster.instance); }
public SpellBurst(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{X}{U}"); // Buyback {3} this.addAbility(new BuybackAbility("{3}")); // Counter target spell with converted mana cost X. this.getSpellAbility().addEffect(new CounterTargetEffect().setText("counter target spell with converted mana cost X")); this.getSpellAbility().setTargetAdjuster(SpellBurstAdjuster.instance); }
ImprisonTriggeredAbility() { super(Zone.BATTLEFIELD, new DoIfCostPaid(new CounterTargetEffect().setText("counter that ability"), new DestroySourceEffect(), new ManaCostsImpl("1"))); }
public Mistfolk(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{U}{U}"); this.subtype.add(SubType.ILLUSION); this.power = new MageInt(1); this.toughness = new MageInt(2); // {U}: Counter target spell that targets Mistfolk. Ability ability = new SimpleActivatedAbility( new CounterTargetEffect() .setText("counter target spell that targets {this}"), new ManaCostsImpl("{U}") ); ability.addTarget(new TargetSpell(filter)); this.addAbility(ability); }