mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
[DMU] Compleated Ajani, Sleeper Agent
This commit is contained in:
parent
346be39f2a
commit
e341023d23
3 changed files with 131 additions and 0 deletions
|
|
@ -0,0 +1,29 @@
|
|||
package mage.game.command.emblems;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SpellCastControllerTriggeredAbility;
|
||||
import mage.abilities.effects.common.counter.AddPoisonCounterTargetEffect;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.FilterSpell;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.game.command.Emblem;
|
||||
import mage.target.common.TargetOpponent;
|
||||
|
||||
public final class AjaniSleeperAgentEmblem extends Emblem {
|
||||
|
||||
private static final FilterSpell filter = new FilterSpell("a creature or planeswalker spell");
|
||||
|
||||
static {
|
||||
filter.add(Predicates.or(CardType.CREATURE.getPredicate(), CardType.PLANESWALKER.getPredicate()));
|
||||
}
|
||||
|
||||
// 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");
|
||||
Ability ability = new SpellCastControllerTriggeredAbility(Zone.COMMAND, new AddPoisonCounterTargetEffect(2), filter, false, false);
|
||||
ability.addTarget(new TargetOpponent());
|
||||
this.getAbilities().add(ability);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue