@Override public AfflictAbility copy() { return new AfflictAbility(this); }
@Override public boolean checkTrigger(GameEvent event, Game game) { if (super.checkTrigger(event, game)) { UUID defenderId = game.getCombat().getDefendingPlayerId(getSourceId(), game); if (defenderId != null) { this.getEffects().setTargetPointer(new FixedTarget(defenderId)); return true; } } return false; }
public DaggerOfTheWorthy(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}"); this.subtype.add(SubType.EQUIPMENT); // Equipped creature gets +2/+0 and has afflict 1. (Whenever it becomes blocked, defending player loses 1 life.) Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEquippedEffect(2,0)); ability.addEffect(new GainAbilityAttachedEffect(new AfflictAbility(1), AttachmentType.EQUIPMENT)); addAbility(ability); // Equip {2} ({2}: Attach to target creature you control. Equip only as a sorcery.) this.addAbility(new EquipAbility(Outcome.AddAbility, new GenericManaCost(2))); }
public KhenraEternal(UUID ownerId, CardSetInfo cardSetInfo) { super(ownerId, cardSetInfo, new CardType[]{CardType.CREATURE}, "{1}{B}"); subtype.add(SubType.ZOMBIE); subtype.add(SubType.JACKAL); subtype.add(SubType.WARRIOR); power = new MageInt(2); toughness = new MageInt(2); // Afflict 1 (Whenever this creature becomes blocked, defending player loses 1 life.) addAbility(new AfflictAbility(1)); }
public ManticoreEternal(UUID ownerId, CardSetInfo cardSetInfo) { super(ownerId, cardSetInfo, new CardType[]{CardType.CREATURE}, "{3}{R}{R}"); subtype.add(SubType.ZOMBIE); subtype.add(SubType.MANTICORE); power = new MageInt(5); toughness = new MageInt(4); // Afflict 3 addAbility(new AfflictAbility(3)); // Manticore Eternal attacks each combat if able addAbility(new AttacksEachCombatStaticAbility()); }
public SpellweaverEternal(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{U}"); this.subtype.add(SubType.ZOMBIE); this.subtype.add(SubType.NAGA); this.subtype.add(SubType.WIZARD); this.power = new MageInt(2); this.toughness = new MageInt(1); // Prowess this.addAbility(new ProwessAbility()); // Afflict 2 this.addAbility(new AfflictAbility(2)); }
public EternalOfHarshTruths(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}"); this.subtype.add(SubType.ZOMBIE); this.subtype.add(SubType.CLERIC); this.power = new MageInt(1); this.toughness = new MageInt(3); // Afflict 2 this.addAbility(new AfflictAbility(2)); // Whenever Eternal of Harsh Truths attacks and isn't blocked, draw a card. this.addAbility(new AttacksAndIsNotBlockedTriggeredAbility(new DrawCardSourceControllerEffect(1))); }
public WildfireEternal(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}"); this.subtype.add(SubType.ZOMBIE); this.subtype.add(SubType.JACKAL); this.subtype.add(SubType.CLERIC); this.power = new MageInt(1); this.toughness = new MageInt(4); // Afflict 4 addAbility(new AfflictAbility(4)); // Whenever Wildfire Eternal attacks and isn't blocked, you may cast an instant or sorcery card from your hand without paying its mana cost. this.addAbility(new AttacksAndIsNotBlockedTriggeredAbility(new WildfireEternalCastEffect(), false, true)); }
public NehebTheEternal(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}{R}"); addSuperType(SuperType.LEGENDARY); this.subtype.add(SubType.ZOMBIE); this.subtype.add(SubType.MINOTAUR); this.subtype.add(SubType.WARRIOR); this.power = new MageInt(4); this.toughness = new MageInt(6); // Afflict 3 addAbility(new AfflictAbility(3)); // At the beginning of your postcombat main phase, add {R} for each 1 life your opponents have lost this turn. this.addAbility(new BeginningOfPostCombatMainTriggeredAbility(new NehebTheEternalManaEffect(), TargetController.YOU, false)); }
public FrontlineDevastator(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}"); this.subtype.add(SubType.ZOMBIE); this.subtype.add(SubType.MINOTAUR); this.subtype.add(SubType.WARRIOR); this.power = new MageInt(3); this.toughness = new MageInt(3); // Afflict 2 addAbility(new AfflictAbility(2)); // {1}{R}: Frontline Devastator gets +1/+0 until end of turn. addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1,0,Duration.EndOfTurn), new ManaCostsImpl("{1}{R}"))); }
public MercilessEternal(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{B}"); this.subtype.add(SubType.ZOMBIE); this.subtype.add(SubType.CLERIC); this.power = new MageInt(2); this.toughness = new MageInt(2); // Afflict 2 this.addAbility(new AfflictAbility(2)); // {2}{B}, Discard a card: Merciless Eternal gets +2/+2 until end of turn. Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2, 2, Duration.EndOfTurn), new ManaCostsImpl("{2}{B}")); ability.addCost(new DiscardCardCost(false)); this.addAbility(ability); }
public AmmitEternal(UUID ownerId, CardSetInfo cardSetInfo) { super(ownerId, cardSetInfo, new CardType[]{CardType.CREATURE}, "{2}{B}"); subtype.add(SubType.ZOMBIE); subtype.add(SubType.CROCODILE); subtype.add(SubType.DEMON); power = new MageInt(5); toughness = new MageInt(5); // Afflict 3 (Whenever this creature becomes blocked, defending player loses 3 life.) this.addAbility(new AfflictAbility(3)); // Whenever an opponent casts a spell, put a -1/-1 counter on Ammit Eternal. this.addAbility(new SpellCastOpponentTriggeredAbility(new AddCountersSourceEffect(CounterType.M1M1.createInstance()), false)); // Whenever Ammit Eternal deals combat damage to a player, remove all -1/-1 counters from it. this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new RemoveAllCountersSourceEffect(CounterType.M1M1), false)); }