Package mage.abilities.common

Examples of mage.abilities.common.ZoneChangeTriggeredAbility


      if (!card.getAbilities().containsKey(ability.getId())) {
        if (ability.checkTrigger(event, game)) {
          ability.trigger(game, controllerId);
        }
      } else if (ability instanceof ZoneChangeTriggeredAbility && event.getFromZone() == Zone.BATTLEFIELD) {
        ZoneChangeTriggeredAbility zcAbility = (ZoneChangeTriggeredAbility)ability;
        if (zcAbility.getToZone() == null) {
          if (ability.checkTrigger(event, game)) {
            ability.trigger(game, controllerId);
          }
        }
      }
View Full Code Here


    for (T ability: this) {
      if (ability instanceof TriggeredAbility && ability.getZone().match(zone)) {
        zonedAbilities.add((TriggeredAbility)ability);
      }
      else if (ability instanceof ZoneChangeTriggeredAbility) {
        ZoneChangeTriggeredAbility zcAbility = (ZoneChangeTriggeredAbility)ability;
        if (zcAbility.getToZone() != null && zcAbility.getToZone().match(zone)) {
          zonedAbilities.add((ZoneChangeTriggeredAbility)ability);
        }
      }
    }
    return zonedAbilities;
View Full Code Here

        for (T ability: this) {
            if (ability instanceof TriggeredAbility && ability.getZone().match(zone)) {
                zonedAbilities.add((TriggeredAbility)ability);
            }
            else if (ability instanceof ZoneChangeTriggeredAbility) {
                ZoneChangeTriggeredAbility zcAbility = (ZoneChangeTriggeredAbility)ability;
                if (zcAbility.getToZone() != null && zcAbility.getToZone().match(zone)) {
                    zonedAbilities.add((ZoneChangeTriggeredAbility)ability);
                }
            }
        }
        return zonedAbilities;
View Full Code Here

TOP

Related Classes of mage.abilities.common.ZoneChangeTriggeredAbility

Copyright © 2018 www.massapicom. 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.