Examples of tap()


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

  @Override
  public boolean pay(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()

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

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

                if (player.chooseUse(Outcome.Untap, "Untap that permanent?", game)) {
                    target.untap(game);
                }
            } else {
                if (player.chooseUse(Outcome.Tap, "Tap that permanent?", game)) {
                    target.tap(game);
                }
            }
            return true;
        }
        return false;
View Full Code Here

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

                cost.clearPaid();
                if (cost.pay(source, game, source.getSourceId(), source.getControllerId(), false)) {
                    for (UUID target : this.targetPointer.getTargets(game, source)) {
                        Permanent permanent = game.getPermanent(target);
                        if (permanent != null) {
                            permanent.tap(game);
                            ContinuousEffect effect = new SkipNextUntapTargetEffect();
                            effect.setTargetPointer(new FixedTarget(permanent.getId()));
                            game.addEffect(effect, source);
                        }
                    }
View Full Code Here

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

                cost.clearPaid();
                if (cost.pay(source, game, source.getSourceId(), source.getControllerId(), false)) {
                    return true;
                }
            }
            permanent.tap(game);
            return true;
        }
        return false;
    }
View Full Code Here

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

                for (UUID creatureId: target.getTargets()) {
                    Permanent perm = game.getPermanent(creatureId);
                    if (perm == null || ability.getManaCostsToPay().convertedManaCost() == 0) {
                        continue;
                    }
                    if (!perm.isTapped() && perm.tap(game)) {
                        ManaCosts<ManaCost> manaCostsToReduce = new ManaCostsImpl<>();
                        int costBefore = ability.getManaCostsToPay().convertedManaCost();
                        Choice chooseManaType = buildChoice(perm.getColor(), ability.getManaCostsToPay());
                        if (chooseManaType.getChoices().size() > 0) {
                            if (chooseManaType.getChoices().size() > 1) {
View Full Code Here

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

        Permanent permanent = game.getPermanent(source.getSourceId());
        if (permanent != null) {
            if (withoutTrigger) {
                permanent.setTapped(true);
            } else {
                permanent.tap(game);
            }
            return true;
        }
        return false;
    }
View Full Code Here

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

        CombatGroup newGroup = new CombatGroup(defenderId, defender != null, defender != null ? defender.getControllerId() : defenderId);
        newGroup.attackers.add(attackerId);
        Permanent attacker = game.getPermanent(attackerId);
        if (!attacker.getAbilities().containsKey(VigilanceAbility.getInstance().getId())) {
            attacker.tap(game);
        }
        attacker.setAttacking(true);
        groups.add(newGroup);
        return true;
    }
View Full Code Here

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

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

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

            for (UUID targetId: (List<UUID>)target.getTargets()) {
                Permanent permanent = game.getPermanent(targetId);
                if (permanent == null) {
                    return false;
                }
                paid |= permanent.tap(game);
            }
        }
        return paid;
    }
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.