@Override public LeavesBattlefieldAllTriggeredAbility copy() { return new LeavesBattlefieldAllTriggeredAbility(this); }
public AurraSingBaneOfJediEmblem() { this.setName("Emblem Aurra Sing, Bane of Jedi"); getAbilities().add(new LeavesBattlefieldAllTriggeredAbility(Zone.COMMAND, new DiscardControllerEffect(1), filter, false)); } }
public DualNature(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{4}{G}{G}"); // Whenever a nontoken creature enters the battlefield, its controller creates a token that's a copy of that creature. this.addAbility(new EntersBattlefieldAllTriggeredAbility( Zone.BATTLEFIELD, new DualNatureCreateTokenEffect(), filter, false, SetTargetPointer.PERMANENT, "Whenever a nontoken creature enters the battlefield, its controller creates a token that's a copy of that creature." )); // Whenever a nontoken creature leaves the battlefield, exile all tokens with the same name as that creature. this.addAbility(new LeavesBattlefieldAllTriggeredAbility( Zone.BATTLEFIELD, new DualNatureCreatureLeavesEffect(), filter, false, SetTargetPointer.PERMANENT )); // When Dual Nature leaves the battlefield, exile all tokens created with Dual Nature. this.addAbility(new DualNatureLeavesBattlefieldTriggeredAbility()); }
public ExtractorDemon(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{B}{B}"); this.subtype.add(SubType.DEMON); this.power = new MageInt(5); this.toughness = new MageInt(5); // Flying this.addAbility(FlyingAbility.getInstance()); // Whenever another creature leaves the battlefield, you may have target player put the top two cards of their library into their graveyard. Ability ability = new LeavesBattlefieldAllTriggeredAbility(new PutLibraryIntoGraveTargetEffect(2), filter, true); ability.addTarget(new TargetPlayer()); this.addAbility(ability); // Unearth {2}{B} this.addAbility(new UnearthAbility(new ManaCostsImpl("{2}{B}"))); }
public TwilightDrover(UUID ownerId, CardSetInfo setInfo) { super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{W}"); this.subtype.add(SubType.SPIRIT); this.power = new MageInt(1); this.toughness = new MageInt(1); // Whenever a creature token leaves the battlefield, put a +1/+1 counter on Twilight Drover. this.addAbility(new LeavesBattlefieldAllTriggeredAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance()), filter)); // {2}{W}, Remove a +1/+1 counter from Twilight Drover: Create two 1/1 white Spirit creature tokens with flying. Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new SpiritWhiteToken("RAV"), 2), new ManaCostsImpl<>("{2}{W}")); ability.addCost(new RemoveCountersSourceCost(CounterType.P1P1.createInstance())); this.addAbility(ability); }