Package mage.filter.predicate.permanent

Examples of mage.filter.predicate.permanent.ControllerPredicate


        if (player == null) {
            return false;
        }

        FilterCreaturePermanent filter = new FilterCreaturePermanent();
        filter.add(new ControllerPredicate(TargetController.YOU));
        Target target = new TargetControlledPermanent(1, 1, filter, true);

        if (target.canChoose(player.getId(), game)) {
            while (player.isInGame() && !target.isChosen() && target.canChoose(player.getId(), game)) {
                player.chooseTarget(Outcome.ReturnToHand, target, source, game);
View Full Code Here

TOP

Related Classes of mage.filter.predicate.permanent.ControllerPredicate

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.