Examples of DiscardTargetEffect


Examples of mage.abilities.effects.common.discard.DiscardTargetEffect

        this.color.setGreen(true);

        // Down
        // Target player discards two cards.
        getLeftHalfCard().getColor().setBlack(true);
        getLeftHalfCard().getSpellAbility().addEffect(new DiscardTargetEffect(2));
        getLeftHalfCard().getSpellAbility().addTarget(new TargetPlayer());

        // Dirty
        // Return target card from your graveyard to your hand.
        getRightHalfCard().getColor().setGreen(true);
View Full Code Here

Examples of mage.abilities.effects.common.discard.DiscardTargetEffect

        this.color.setBlack(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);

        this.addAbility(FlyingAbility.getInstance());
        SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DiscardTargetEffect(2), new ManaCostsImpl("{4}{B}"));
        ability.addCost(new SacrificeSourceCost());
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.effects.common.discard.DiscardTargetEffect

        this.color.setBlack(true);

        // Target player loses 1 life, discards a card, then sacrifices a permanent.
        this.getSpellAbility().addTarget(new TargetPlayer());
        this.getSpellAbility().addEffect(new LoseLifeTargetEffect(1));
        this.getSpellAbility().addEffect(new DiscardTargetEffect(1));
        this.getSpellAbility().addEffect(new SacrificeEffect(new FilterPermanent(),1,"then that player"));

        // Cipher (Then you may exile this spell card encoded on a creature you control. Whenever that creature deals combat damage to a player, its controller may cast a copy of the encoded card without paying its mana cost.)
        this.getSpellAbility().addEffect(new CipherEffect());
View Full Code Here

Examples of mage.abilities.effects.common.discard.DiscardTargetEffect

        this.toughness = new MageInt(2);

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // Whenever Sedraxis Specter deals combat damage to a player, that player discards a card.
        this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new DiscardTargetEffect(1), false, true));
        // Unearth {1}{B}
        this.addAbility(new UnearthAbility(new ManaCostsImpl("{1}{B}")));
    }
View Full Code Here

Examples of mage.abilities.effects.common.discard.DiscardTargetEffect

        super(ownerId, 87, "Three Tragedies", Rarity.UNCOMMON, new CardType[]{CardType.SORCERY}, "{3}{B}{B}");
        this.expansionSetCode = "BOK";
        this.subtype.add("Arcane");
        this.color.setBlack(true);
        // Target player discards three cards.
        this.getSpellAbility().addEffect(new DiscardTargetEffect(3));
        this.getSpellAbility().addTarget(new TargetPlayer());
    }
View Full Code Here

Examples of mage.abilities.effects.common.discard.DiscardTargetEffect

        this.expansionSetCode = "KTK";

        this.color.setBlack(true);

        // Target opponent discards two cards. Put the top two cards of your library into your graveyard.
        this.getSpellAbility().addEffect(new DiscardTargetEffect(2));
        this.getSpellAbility().addTarget(new TargetOpponent());
        Effect effect = new PutTopCardOfLibraryIntoGraveControllerEffect(2);
        effect.setText("Put the top two cards of your library into your graveyard");
        this.getSpellAbility().addEffect(effect);
    }
View Full Code Here

Examples of mage.abilities.effects.common.discard.DiscardTargetEffect

        // Deathtouch
        this.addAbility(DeathtouchAbility.getInstance());
        // Whenever Liliana's Reaver deals combat damage to a player, that player discards a card and you put a 2/2 black Zombie creature token onto the battlefield tapped.

        Ability ability = new DealsCombatDamageToAPlayerTriggeredAbility(new DiscardTargetEffect(1),false, true);
        ability.addEffect(new CreateTokenEffect(new ZombieToken("M14"), 1, true, false));
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.effects.common.discard.DiscardTargetEffect

        this.expansionSetCode = "MRD";

        this.color.setBlack(true);

        // At the beginning of each player's upkeep, that player discards a card.
        this.addAbility(new BeginningOfUpkeepTriggeredAbility(new DiscardTargetEffect(1), TargetController.ANY, false));
    }
View Full Code Here

Examples of mage.abilities.effects.common.discard.DiscardTargetEffect

        SimpleStaticAbility blueAbility = new SimpleStaticAbility(Zone.BATTLEFIELD, new ConditionalContinousEffect(new BoostEnchantedEffect(1, 1), new EnchantedCreatureColorCondition(ObjectColor.BLUE), "As long as enchanted creature is blue, it gets +1/+1"));
        blueAbility.addEffect(new ConditionalContinousEffect(new GainAbilityAttachedEffect(new DealsDamageToAPlayerTriggeredAbility(new DrawCardSourceControllerEffect(1),false), AttachmentType.AURA), new EnchantedCreatureColorCondition(ObjectColor.BLUE), "and has \"Whenever this creature deals damage to an opponent, draw a card.\""));
        this.addAbility(blueAbility);
        // As long as enchanted creature is black, it gets +1/+1 and has "Whenever this creature deals damage to an opponent, that player discards a card."
        SimpleStaticAbility blackAbility = new SimpleStaticAbility(Zone.BATTLEFIELD, new ConditionalContinousEffect(new BoostEnchantedEffect(1, 1), new EnchantedCreatureColorCondition(ObjectColor.BLACK), "As long as enchanted creature is black, it gets +1/+1"));
        blackAbility.addEffect(new ConditionalContinousEffect(new GainAbilityAttachedEffect(new DealsDamageToAPlayerTriggeredAbility(new DiscardTargetEffect(1), false, true), AttachmentType.AURA), new EnchantedCreatureColorCondition(ObjectColor.BLACK), "and has \"Whenever this creature deals damage to an opponent, that player discards a card.\""));
        this.addAbility(blackAbility);
    }
View Full Code Here

Examples of mage.abilities.effects.common.discard.DiscardTargetEffect

        this.expansionSetCode = "LEA";

        this.color.setBlack(true);

        // Target player discards X cards at random.
        this.getSpellAbility().addEffect(new DiscardTargetEffect(new ManacostVariableValue(), true));
        this.getSpellAbility().addTarget(new TargetPlayer());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.