Package mage.abilities

Examples of mage.abilities.TriggeredAbilities


  public boolean checkTriggered() {
    boolean played = false;
    for (UUID playerId: state.getPlayerList(state.getActivePlayerId())) {
      Player player = getPlayer(playerId);
      while (true) {
        TriggeredAbilities abilities = state.getTriggered().getControlledBy(player.getId());
        if (abilities.size() == 0)
          break;
        if (abilities.size() == 1) {
          state.getTriggered().remove(abilities.get(0));
          played |= player.triggerAbility(abilities.get(0), this);
        }
        else {
          TriggeredAbility ability = player.chooseTriggeredAbility(abilities, this);
          state.getTriggered().remove(ability);
          played |= player.triggerAbility(ability, this);
View Full Code Here


    turn = new Turn();
    stack = new SpellStack();
    exile = new Exile();
    battlefield = new Battlefield();
    effects = new ContinuousEffects();
    triggers = new TriggeredAbilities();
    delayed = new DelayedTriggeredAbilities();
    specialActions = new SpecialActions();
    combat = new Combat();
    turnMods = new TurnMods();
    watchers = new Watchers();
View Full Code Here

TOP

Related Classes of mage.abilities.TriggeredAbilities

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.