Package mage.game.permanent

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


   
    @Override
    public boolean apply(Game game, Ability source) {
        Permanent creature = game.getPermanent(source.getFirstTarget());
        if (creature != null) {
            creature.tap(game);
        }
        creature = game.getPermanent(source.getTargets().get(1).getFirstTarget());
        if (creature != null) {
            creature.tap(game);
        }
View Full Code Here


        if (creature != null) {
            creature.tap(game);
        }
        creature = game.getPermanent(source.getTargets().get(1).getFirstTarget());
        if (creature != null) {
            creature.tap(game);
        }
        return new FightTargetsEffect().apply(game, source);
    }
}
View Full Code Here

                    if (player.chooseUse(Outcome.Untap, "Untap equipped creature?", game)) {
                        equipedCreature.untap(game);
                    }
                } else {
                    if (player.chooseUse(Outcome.Tap, "Tap equipped creature?", game)) {
                        equipedCreature.tap(game);
                    }
                }
                return true;
            }
        }
View Full Code Here

        }
        for (UUID target : targetPointer.getTargets(game, source)) {
            Permanent permanent = game.getPermanent(target);
            if (permanent != null) {
                rustTick.addConnectedCard("RustTick", permanent.getId());
                permanent.tap(game);
            } else {
                return false;
            }
        }
        return true;
View Full Code Here

        AureliasFuryDamagedByWatcher watcher = (AureliasFuryDamagedByWatcher) game.getState().getWatchers().get("AureliasFuryDamagedByWatcher", source.getSourceId());
        if (watcher != null) {
            for(UUID creatureId : watcher.damagedCreatures) {
                Permanent permanent = game.getPermanent(creatureId);
                if (permanent != null) {
                    permanent.tap(game);
                }
            }
            for(UUID playerId : watcher.damagedPlayers) {
                ContinuousEffect effect = new AureliasFuryCantCastEffect();
                effect.setTargetPointer(new FixedTarget(playerId));
View Full Code Here

            ContinuousEffect effect = new CrownOfEmpiresControlEffect();
            effect.setTargetPointer(new FixedTarget(target.getId()));
            game.getState().setValue(source.getSourceId().toString(), source.getControllerId());
            game.addEffect(effect, source);
        } else {
            target.tap(game);
        }
        return false;
    }

    @Override
View Full Code Here

                Targets targets = source.getTargets();
                Target target1 = targets.get(1);
                for (UUID target: target1.getTargets()) {
            Permanent permanent = game.getPermanent(target);
            if (permanent != null) {
                permanent.tap(game);
            } else {
                return false;
            }
        }
        return true;
View Full Code Here

            Permanent permanent = game.getPermanent(target);
            if (permanent != null) {
                if (sourcePermanent != null) {
                    sourcePermanent.addConnectedCard("AmberPrison", permanent.getId());
                }
                permanent.tap(game);
            }
        }
        return true;
    }
   
View Full Code Here

        if (target.choose(Outcome.Tap, controllerId, sourceId, game)) {
            for (UUID targetId: (List<UUID>)target.getTargets()) {
                Permanent permanent = game.getPermanent(targetId);
                if (permanent == null)
                    return false;
                paid |= permanent.tap(game);
                for (Effect effect : ability.getEffects()) {
                    effect.setTargetPointer(new FixedTarget(permanent.getId()));
                }
            }
        }
View Full Code Here

        if (hunter == null) {
            hunter = (Permanent) game.getLastKnownInformation(source.getSourceId(), Zone.BATTLEFIELD);
        }
        Permanent targetCreature = game.getPermanent(source.getTargets().getFirstTarget());
        if (targetCreature != null) {
            targetCreature.tap(game);
            if (hunter != null) {
                targetCreature.damage(hunter.getPower().getValue(), hunter.getId(), game, false, true);
            }
            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.