Examples of TargetAttackingCreature


Examples of mage.target.common.TargetAttackingCreature

  public Condemn(UUID ownerId) {
    super(ownerId, 13, "Condemn", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{W}");
    this.expansionSetCode = "10E";
    this.color.setWhite(true);
    this.getSpellAbility().addTarget(new TargetAttackingCreature());
    this.getSpellAbility().addEffect(new CondemnEffect());
    this.getSpellAbility().addEffect(new PutOnLibraryTargetEffect(false));

  }
View Full Code Here

Examples of mage.target.common.TargetAttackingCreature

      }
    }
  }

  protected void selectCombatGroup(UUID blockerId, Game game) {
    TargetAttackingCreature target = new TargetAttackingCreature();
    game.fireSelectTargetEvent(playerId, "Select attacker to block", target.possibleTargets(null, playerId, game), target.isRequired());
    waitForResponse();
    if (response.getBoolean() != null) {
      return;
    } else if (response.getUUID() != null) {
      declareBlocker(blockerId, response.getUUID(), game);
View Full Code Here

Examples of mage.target.common.TargetAttackingCreature

        // If exactly one creature is attacking, you may pay {W} rather than pay Pitfall Trap's mana cost.
        this.getSpellAbility().addAlternativeCost(new PitfallTrapAlternativeCost());
       
        // Destroy target attacking creature without flying.
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
        this.getSpellAbility().addTarget(new TargetAttackingCreature(1, 1, filter, false));
    }
View Full Code Here

Examples of mage.target.common.TargetAttackingCreature

public class BloodrushAbility extends ActivatedAbilityImpl {

    public BloodrushAbility(String manaString, Effect effect) {
        super(Zone.HAND, effect, new ManaCostsImpl(manaString));
        this.addCost(new DiscardSourceCost());
        this.addTarget(new TargetAttackingCreature());
    }
View Full Code Here

Examples of mage.target.common.TargetAttackingCreature

    this.color.setWhite(true);
    this.power = new MageInt(1);
    this.toughness = new MageInt(1);

    Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(1, 1, Duration.EndOfTurn), new TapSourceCost());
    ability.addTarget(new TargetAttackingCreature());
    this.addAbility(ability);
  }
View Full Code Here

Examples of mage.target.common.TargetAttackingCreature

        this.expansionSetCode = "BOK";
        this.subtype.add("Arcane");
        this.color.setWhite(true);
        // Destroy target attacking creature with power 3 or less.
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
        this.getSpellAbility().addTarget(new TargetAttackingCreature(1, 1, filter, false));
    }
View Full Code Here

Examples of mage.target.common.TargetAttackingCreature

        this.expansionSetCode = "9ED";

        this.color.setWhite(true);

        // Destroy target attacking creature. You gain life equal to its power.
        this.getSpellAbility().addTarget(new TargetAttackingCreature());
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
        this.getSpellAbility().addEffect(new ChastiseEffect());
    }
View Full Code Here

Examples of mage.target.common.TargetAttackingCreature

        return null;
    }

    protected void selectCombatGroup(UUID defenderId, UUID blockerId, Game game) {
        updateGameStatePriority("selectCombatGroup", game);
        TargetAttackingCreature target = new TargetAttackingCreature();
        game.fireSelectTargetEvent(playerId, "Select attacker to block", target.possibleTargets(null, playerId, game), false, null);
        waitForResponse(game);
        if (response.getBoolean() != null) {
            // do nothing
        } else if (response.getUUID() != null) {
            CombatGroup group = game.getCombat().findGroup(response.getUUID());
View Full Code Here

Examples of mage.target.common.TargetAttackingCreature

        effect.setText("Prevent all combat damage that would be dealt to");
        ability.addEffect(effect);
        effect = new PreventDamageToTargetEffect(Duration.EndOfTurn, Integer.MAX_VALUE, true);
        effect.setText("and dealt by that creature this turn");
        ability.addEffect(effect);
        ability.addTarget(new TargetAttackingCreature());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.target.common.TargetAttackingCreature

        // If a white creature is attacking, you may pay {B}{B} rather than pay Nemesis Trap's mana cost.
        this.addAbility(new AlternativeCostSourceAbility(new ManaCostsImpl("{B}{B}"), new PermanentsOnTheBattlefieldCondition(filter, PermanentsOnTheBattlefieldCondition.CountType.MORE_THAN, 0, false)));

        // Exile target attacking creature. Put a token that's a copy of that creature onto the battlefield. Exile it at the beginning of the next end step.
        this.getSpellAbility().addEffect(new NemesisTrapEffect());
        this.getSpellAbility().addTarget(new TargetAttackingCreature());
    }
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.