public SeismicShift(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{R}"); // Destroy target land. Up to two target creatures can't block this turn. this.getSpellAbility().addEffect(new DestroyTargetEffect(false, false)); this.getSpellAbility().addTarget(new TargetLandPermanent()); this.getSpellAbility().addEffect(new CantBlockTargetEffect(Duration.EndOfTurn) .setText("Up to two target creatures can't block this turn") .setTargetPointer(new SecondTargetPointer())); this.getSpellAbility().addTarget(new TargetCreaturePermanent(0, 2, StaticFilters.FILTER_PERMANENT_CREATURES, false)); }
public EarthshakerKhenra(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}"); this.subtype.add(SubType.JACKAL); this.subtype.add(SubType.WARRIOR); this.power = new MageInt(2); this.toughness = new MageInt(1); // Haste this.addAbility(HasteAbility.getInstance()); // When Earthshaker Khenra enters the battlefield, target creature with power less than or equal to Earthshaker Khenra's power can't block this turn. Ability ability = new EntersBattlefieldTriggeredAbility( new CantBlockTargetEffect(Duration.EndOfTurn) .setText("target creature with power less than or equal " + "to {this}'s power can't block this turn") ); ability.addTarget(new TargetCreaturePermanent(filter)); this.addAbility(ability); // Eternalize {4}{R}{R} this.addAbility(new EternalizeAbility(new ManaCostsImpl("{4}{R}{R}"), this)); }
public MercilessJavelineer(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{B}{R}"); this.subtype.add(SubType.MINOTAUR); this.subtype.add(SubType.WARRIOR); this.power = new MageInt(4); this.toughness = new MageInt(2); // {2}, Discard a card: Put a -1/-1 counter on target creature. That creature can't block this turn. Ability ability = new SimpleActivatedAbility( Zone.BATTLEFIELD, new AddCountersTargetEffect( CounterType.M1M1.createInstance(), new StaticValue(1), Outcome.Removal), new ManaCostsImpl("{2}")); ability.addEffect( new CantBlockTargetEffect(Duration.EndOfTurn) .setText("That creature can't block this turn.")); ability.addCost(new DiscardCardCost()); ability.addTarget(new TargetCreaturePermanent()); addAbility(ability); }