Package mage.players

Examples of mage.players.Player.discard()


        if (player != null) {
            Targets targets = source.getTargets();
            int i = 0;
                for (Target target: targets) {
                    Card card = game.getCard(target.getFirstTarget());
                    player.discard(card, source, game);
                    i++;
                }
            game.addEffect(new BoostControlledEffect(0, i, Duration.EndOfTurn), source);
            return true;
        }
View Full Code Here


        Player player = game.getPlayer(source.getControllerId());
        if (player != null) {
            player.drawCards(1, game);
            Card card = player.getHand().getRandom(game);
            if (card != null) {
                player.discard(card, source, game);
            }
            return true;
        }
        return false;
    }
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.