Examples of canTap()


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

  @Override
  public boolean canPay(UUID sourceId, UUID controllerId, Game game) {
    Permanent permanent = game.getPermanent(sourceId);
    if (permanent != null) {
      return !permanent.isTapped() && permanent.canTap();
    }
    return false;
  }

  @Override
View Full Code Here

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

    @Override
    public boolean canPay(Ability ability, UUID sourceId, UUID controllerId, Game game) {
        Permanent permanent = game.getPermanent(sourceId);
        if (permanent != null) {
            return !permanent.isTapped() &&
                    (permanent.canTap() || game.getContinuousEffects().asThough(sourceId, AsThoughEffectType.ACTIVATE_HASTE, controllerId, game));
        }
        return false;
    }

    @Override
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.