Package mage.abilities.common

Examples of mage.abilities.common.DiscardsACardOpponentTriggeredAbility


        this.expansionSetCode = "DST";

        Effect drawTrigger = new DrawCardSourceControllerEffect(1);
        drawTrigger.setText("You may draw a card.");
        // Whenever an opponent discards a card, you may draw a card.
        this.addAbility(new DiscardsACardOpponentTriggeredAbility(drawTrigger, true));
    }
View Full Code Here


        this.addAbility(ability);

        // Whenever an opponent discards a card, you may put a 1/1 green Elf Warrior creature token onto the battlefield.
        Effect effect2 = new CreateTokenEffect(new ElfToken());
        effect2.setText("you may put a 1/1 green Elf Warrior creature token onto the battlefield");
        this.addAbility(new DiscardsACardOpponentTriggeredAbility(effect2, true));

    }
View Full Code Here

TOP

Related Classes of mage.abilities.common.DiscardsACardOpponentTriggeredAbility

Copyright © 2018 www.massapicom. 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.