Tokens and command objects reworked (part 2 of 2, tokens/emblems)

This commit is contained in:
Oleg Agafonov 2023-05-08 02:18:42 +04:00
parent 5f55c7c667
commit f2d93f224f
591 changed files with 1368 additions and 4425 deletions

View file

@ -20,10 +20,18 @@ public final class AjaniSleeperAgentEmblem extends Emblem {
// You get an emblem with "Whenever you cast a creature or planeswalker spell, target opponent gets two poison counters."
public AjaniSleeperAgentEmblem() {
this.setName("Emblem Ajani");
this.setExpansionSetCodeForImage("DMU");
super("Emblem Ajani");
Ability ability = new SpellCastControllerTriggeredAbility(Zone.COMMAND, new AddPoisonCounterTargetEffect(2), filter, false, false);
ability.addTarget(new TargetOpponent());
this.getAbilities().add(ability);
}
private AjaniSleeperAgentEmblem(final AjaniSleeperAgentEmblem card) {
super(card);
}
@Override
public AjaniSleeperAgentEmblem copy() {
return new AjaniSleeperAgentEmblem(this);
}
}