Examples of DiscardControllerEffect


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

        // Flying
        this.addAbility(FlyingAbility.getInstance());

        // When Sphinx of Lost Truths enters the battlefield, draw three cards. Then if it wasn't kicked, discard three cards.
        Ability ability = new EntersBattlefieldTriggeredAbility(new DrawCardSourceControllerEffect(3));
        ability.addEffect(new ConditionalOneShotEffect(new DiscardControllerEffect(3), new InvertCondition(KickedCondition.getInstance()),
                "Then if it wasn't kicked, discard three cards"));
        this.addAbility(ability);
    }
View Full Code Here

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

        this.expansionSetCode = "CHK";
        this.color.setRed(true);
        this.getSpellAbility().addEffect(new DamageTargetEffect(2));
        this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());
        this.getSpellAbility().addEffect(ReturnToHandSpellEffect.getInstance());
        this.getSpellAbility().addEffect(new DiscardControllerEffect(1, true));
    }
View Full Code Here

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

        this.color.setBlue(true);

        // Draw two cards, then discard a card.
        this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(2));
        Effect effect = new DiscardControllerEffect(1);
        effect.setText(", then discard a card");
        this.getSpellAbility().addEffect(effect);
        // If you've cast a spell named Peer Through Depths and a spell named Reach Through Mists this turn, you may search your library for a card named The Unspeakable, put it onto the battlefield, then shuffle your library.
        this.getSpellAbility().addEffect(new ConditionalOneShotEffect(new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(filter), false, true), new SiftThroughSandsCondition(), rule));
        this.addWatcher(new SiftThroughSandsWatcher());
    }
View Full Code Here

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

        this.expansionSetCode = "HOP";
        this.subtype.add("Equipment");

        // Whenever equipped creature deals combat damage to a player, you may draw two cards. If you do, discard a card.
        Ability ability = new DealsDamageToAPlayerAttachedTriggeredAbility(new DrawCardSourceControllerEffect(2), "equipped creature", true);
        Effect effect = new DiscardControllerEffect(1);
        effect.setText("If you do, discard a card");
        ability.addEffect(effect);
        this.addAbility(ability);
        // Equip {1}
        this.addAbility(new EquipAbility(Outcome.AddAbility, new GenericManaCost(1)));
    }
View Full Code Here

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

        // Search your library for a card, put that card into your hand, discard a card at random, then shuffle your library.
        Effect effect = new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false, true);
        effect.setText("Search your library for a card, put that card into your hand");       
        this.getSpellAbility().addEffect(effect);
        effect = new DiscardControllerEffect(1, true);
        effect.setText(", discard a card at random, then shuffle your library");
        this.getSpellAbility().addEffect(effect);

    }
View Full Code Here

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

        this.color.setBlue(true);

        // Draw three cards. Discard three cards at the beginning of the next end step.
        this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(3));
        this.getSpellAbility().addEffect(new CreateDelayedTriggeredAbilityEffect(new AtEndOfTurnDelayedTriggeredAbility(new DiscardControllerEffect(3))));
    }
View Full Code Here

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

        // Trample
        this.addAbility(TrampleAbility.getInstance());

        // At the beginning of your upkeep, discard a card if you don't control an Ogre.
        this.addAbility(new BeginningOfUpkeepTriggeredAbility(new ConditionalOneShotEffect(
                new DiscardControllerEffect(1),
                new PermanentsOnTheBattlefieldCondition(filter, PermanentsOnTheBattlefieldCondition.CountType.EQUAL_TO, 0),
                "discard a card if you don't control an Ogre"), TargetController.YOU, false));

    }
View Full Code Here

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

        // Sacrifice a creature: Draw cards equal to the sacrificed creature's power, then discard three cards.
        Effect effect = new DrawCardSourceControllerEffect(new SacrificeCostCreaturesPower());
        effect.setText("Draw cards equal to the sacrificed creature's power");
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new SacrificeTargetCost(new TargetControlledCreaturePermanent(new FilterControlledCreaturePermanent("a creature"))));
        effect = new DiscardControllerEffect(3);
        effect.setText(", then discard three cards");
        ability.addEffect(effect);
        this.addAbility(ability);
    }
View Full Code Here

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

        this.expansionSetCode = "USG";
        this.color.setBlue(true);

        // Return Attunement to its owner's hand: Draw three cards, then discard four cards.
    SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(3), new ReturnToHandSourceCost());
    ability.addEffect(new DiscardControllerEffect(4));
        this.addAbility(ability);
    }
View Full Code Here

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

        this.color.setBlue(true);
        this.power = new MageInt(1);
        this.toughness = new MageInt(1);

        // {U}, Sacrifice a creature: Discard a card, then draw a card.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DiscardControllerEffect(1), new ManaCostsImpl("{U}"));
        ability.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent(1,1, new FilterControlledCreaturePermanent("a creature"), true)));
        ability.addEffect(new DrawCardSourceControllerEffect(1));
        this.addAbility(ability);
    }
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.