Examples of FilterAttackingCreature


Examples of mage.filter.common.FilterAttackingCreature

* @author BetaSteward_at_googlemail.com
*/
public class TargetAttackingCreature extends TargetCreaturePermanent<TargetAttackingCreature> {

  public TargetAttackingCreature() {
    this(1, 1, new FilterAttackingCreature(), false);
  }
View Full Code Here

Examples of mage.filter.common.FilterAttackingCreature

  public TargetAttackingCreature() {
    this(1, 1, new FilterAttackingCreature(), false);
  }

  public TargetAttackingCreature(int numTargets) {
    this(numTargets, numTargets, new FilterAttackingCreature(), false);
  }
View Full Code Here

Examples of mage.filter.common.FilterAttackingCreature

* @author BetaSteward_at_googlemail.com
*/
public class TargetAttackingCreature extends TargetPermanent {

    public TargetAttackingCreature() {
        this(1, 1, new FilterAttackingCreature(), false);
    }
View Full Code Here

Examples of mage.filter.common.FilterAttackingCreature

    public TargetAttackingCreature() {
        this(1, 1, new FilterAttackingCreature(), false);
    }
   
    public TargetAttackingCreature(int numTargets) {
        this(numTargets, numTargets, new FilterAttackingCreature(), false);
    }
View Full Code Here

Examples of mage.filter.common.FilterAttackingCreature

        if (player != null) {
            ManaCosts cost = new ManaCostsImpl("{5}{R}{R}");
            if (player.chooseUse(Outcome.Damage, "Pay " + cost.getText() + "?", game)) {
                cost.clearPaid();
                if (cost.pay(source, game, source.getSourceId(), source.getControllerId(), false)) {
                    new UntapAllControllerEffect(new FilterAttackingCreature(),"").apply(game, source);
                    game.getState().getTurnMods().add(new TurnMod(source.getControllerId(), TurnPhase.COMBAT, null, false));
                    return true;
                }
            }
        }
View Full Code Here

Examples of mage.filter.common.FilterAttackingCreature

                FilterCreatureForCombatBlock filterBlocker = new FilterCreatureForCombatBlock();
                filterBlocker.add(new NamePredicate(groups[0]));
                filterBlocker.add(Predicates.not(new BlockingPredicate()));
                Permanent blocker = findPermanent(filterBlocker, playerId, game);
                if (blocker != null) {
                    FilterAttackingCreature filterAttacker = new FilterAttackingCreature();
                    filterAttacker.add(new NamePredicate(groups[1]));
                    Permanent attacker = findPermanent(filterAttacker, opponentId, game);
                    if (attacker != null) {
                        this.declareBlocker(defendingPlayerId, blocker.getId(), attacker.getId(), game);
                    }
                }
View Full Code Here

Examples of mage.filter.common.FilterAttackingCreature

import mage.filter.common.FilterAttackingCreature;

public class BattleCryAbility extends AttacksTriggeredAbility {

    public BattleCryAbility() {
        super(new BoostControlledEffect(1, 0, Duration.EndOfTurn, new FilterAttackingCreature(), true), false);
    }
View Full Code Here

Examples of mage.filter.common.FilterAttackingCreature

        this.toughness = new MageInt(5);

        this.addAbility(TrampleAbility.getInstance());

        // Attacking creatures you control get +3/+0.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostControlledEffect(3, 0, Duration.WhileOnBattlefield, new FilterAttackingCreature(), false)));

        // At the beginning of each upkeep, if a player cast two or more spells last turn, transform Wildblood Pack.
        TriggeredAbility ability = new BeginningOfUpkeepTriggeredAbility(new TransformSourceEffect(false), TargetController.ANY, false);
        this.addAbility(new ConditionalTriggeredAbility(ability, TwoOrMoreSpellsWereCastLastTurnCondition.getInstance(), TransformAbility.TWO_OR_MORE_SPELLS_TRANSFORM_RULE));
View Full Code Here

Examples of mage.filter.common.FilterAttackingCreature

        this.power = new MageInt(2);
        this.toughness = new MageInt(2);
       
        // Whenever Elite Javelineer blocks, it deals 1 damage to target attacking creature.
        Ability ability = new BlocksTriggeredAbility(new DamageTargetEffect(1), false);
        ability.addTarget(new TargetCreaturePermanent(new FilterAttackingCreature()));
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.filter.common.FilterAttackingCreature

        this.subtype.add("Warrior");
        this.color.setRed(true);
        this.power = new MageInt(3);
        this.toughness = new MageInt(3);
        this.addAbility(FirstStrikeAbility.getInstance());
        this.addAbility(new AttacksTriggeredAbility(new BoostAllEffect(1, 0, Duration.EndOfTurn, new FilterAttackingCreature(), true), 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.