Examples of RevealHandTargetEffect


Examples of mage.abilities.effects.common.RevealHandTargetEffect

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

        // {B}{B}{B}, {tap}: Target opponent reveals his or her hand and discards a creature card at random. Activate this ability only during your turn.
        Ability ability = new ActivateIfConditionActivatedAbility(Zone.BATTLEFIELD, new RevealHandTargetEffect(), new ManaCostsImpl("{B}{B}{B}"), MyTurnCondition.getInstance());
        ability.addCost(new TapSourceCost());
        ability.addEffect(new RagManDiscardEffect());
        ability.addTarget(new TargetOpponent());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.effects.common.RevealHandTargetEffect

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

        // When Wanderguard Sentry enters the battlefield, look at target opponent's hand.
        Ability ability = new EntersBattlefieldTriggeredAbility(new RevealHandTargetEffect(TargetController.OPPONENT));
        ability.addTarget(new TargetOpponent());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.effects.common.RevealHandTargetEffect

        // {U}{B}, {tap}: Target player loses 1 life and reveals his or her hand.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LoseLifeTargetEffect(1), new ManaCostsImpl("{U}{B}"));
        ability.addCost(new TapSourceCost());
       
        Effect revealEffect = new RevealHandTargetEffect(TargetController.ANY);
        revealEffect.setText("and reveals his or her hand");
        ability.addEffect(revealEffect);
       
        ability.addTarget(new TargetPlayer());
        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.