Examples of Permanent


Examples of mage.game.permanent.Permanent

  }

  @Override
  public boolean checkTrigger(GameEvent event, Game game) {
    if (event.getType() == EventType.ZONE_CHANGE && ((ZoneChangeEvent)event).getToZone() == Zone.BATTLEFIELD) {
      Permanent permanent = game.getPermanent(event.getTargetId());
      if (permanent != null && permanent.getCardType().contains(CardType.LAND) && permanent.getControllerId().equals(this.controllerId)) {
        return true;
      }
    }
    return false;
  }
View Full Code Here

Examples of mage.game.permanent.Permanent

  }

  @Override
  public boolean apply(Game game, Ability source) {
    for (UUID target: source.getTargets().get(0).getTargets()) {
      Permanent permanent = game.getPermanent(target);
      if (permanent != null) {
        permanent.setTapped(false);
      }
      else {
        return false;
      }
    }
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.