Examples of TargetOpponent


Examples of mage.target.common.TargetOpponent

        super(effect);
    }

    @Override
    public boolean apply(Game game, Ability source) {
        TargetOpponent target = new TargetOpponent();
        Player you = game.getPlayer(source.getControllerId());
        if (target.canChoose(source.getSourceId(), source.getControllerId(), game)) {
            you.chooseTarget(Outcome.DrawCard, target, source, game);
            Player opponent = game.getPlayer(target.getFirstTarget());
            if (opponent != null) {
                you.drawCards(opponent.getHand().size(), game);
                return true;
            }
        }
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.