Examples of tap()


Examples of mage.game.permanent.Permanent.tap()

    @Override
    public boolean apply(Game game, Ability source) {
        for (UUID target : targetPointer.getTargets(game, source)) {
            Permanent permanent = game.getPermanent(target);
            if (permanent != null) {
                permanent.tap(game);
            }
        }
        return true;
    }
View Full Code Here

Examples of mage.game.permanent.Permanent.tap()

    @Override
    public boolean pay(Ability ability, Game game, UUID sourceId, UUID controllerId, boolean noMana) {
        Permanent permanent = game.getPermanent(sourceId);
        if (permanent != null) {
            paid = permanent.tap(game);
        }
        return paid;
    }

    @Override
View Full Code Here

Examples of mage.game.permanent.Permanent.tap()

    @Override
    public boolean replaceEvent(GameEvent event, Ability source, Game game) {
        Permanent target = game.getPermanent(event.getTargetId());
        if (target != null) {
            target.tap(game);
        }
        return false;
    }

    @Override
View Full Code Here

Examples of mage.game.permanent.Permanent.tap()

            if (!target.getTargets().isEmpty()) {
                List<UUID> targets = target.getTargets();
                for (UUID targetId : targets) {
                    Permanent permanent = game.getPermanent(targetId);
                    if (permanent != null) {
                        permanent.tap(game);
                    }
                }
            }
            return true;
        }
View Full Code Here

Examples of mage.game.permanent.Permanent.tap()

    public boolean apply(Game game, Ability source) {
        Permanent enchantment = game.getPermanent(source.getSourceId());
        if (enchantment != null && enchantment.getAttachedTo() != null) {
            Permanent permanent = game.getPermanent(enchantment.getAttachedTo());
            if (permanent != null) {
                return permanent.tap(game);
            }
        }
        return false;
    }
View Full Code Here

Examples of mage.game.permanent.Permanent.tap()

            if (!target.getTargets().isEmpty()) {
                List<UUID> targets = target.getTargets();
                for (UUID targetId : targets) {
                    Permanent permanent = game.getPermanent(targetId);
                    if (permanent != null) {
                        permanent.tap(game);
                    }
                }
            }
            return true;
        }
View Full Code Here

Examples of mage.game.permanent.Permanent.tap()

                            if (player.chooseUse(Outcome.Untap, new StringBuilder("Untap ").append(permanent.getName()).append("?").toString(), game)) {                               
                                permanent.untap(game);
                            }
                        } else {
                            if (player.chooseUse(Outcome.Tap, new StringBuilder("Tap ").append(permanent.getName()).append("?").toString(), game)) {
                                permanent.tap(game);
                            }
                        }
                    }
                }
                return true;
View Full Code Here

Examples of mage.game.permanent.Permanent.tap()

    @Override
    public boolean apply(Game game, Ability source) {
        Permanent creature = game.getPermanent(source.getFirstTarget());
        if (creature != null) {
            if (creature.hasSubtype("Zombie")) {
                creature.tap(game);
                creature.moveToExile(source.getSourceId(), creature.getName(), source.getSourceId(), game);
            } else {
                creature.tap(game);
            }
            return true;
View Full Code Here

Examples of mage.game.permanent.Permanent.tap()

        if (creature != null) {
            if (creature.hasSubtype("Zombie")) {
                creature.tap(game);
                creature.moveToExile(source.getSourceId(), creature.getName(), source.getSourceId(), game);
            } else {
                creature.tap(game);
            }
            return true;
        }
        return false;
    }
View Full Code Here

Examples of mage.game.permanent.Permanent.tap()

            for (UUID targetId : source.getTargets().get(0).getTargets()) {
                i++;
                Permanent permanent = game.getPermanent(targetId);
                if (permanent != null) {
                    if (i==1) {
                        permanent.tap(game);
                    }
                    if (i==2) {
                        permanent.untap(game);
                    }
                }
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.