Package mage.abilities.keyword

Examples of mage.abilities.keyword.ProtectionAbility


        this.toughness = new MageInt(1);

        // Forestwalk
        this.addAbility(new ForestwalkAbility());
        // Protection from green
        this.addAbility(new ProtectionAbility(filter));

    }
View Full Code Here


    this.toughness = new MageInt(1);
   
    // Flying
    this.addAbility(FlyingAbility.getInstance());
    // Protection from black
    this.addAbility(new ProtectionAbility(filter));
  }
View Full Code Here

    this.toughness = new MageInt(1);
   
    // Flying
    this.addAbility(FlyingAbility.getInstance());
    // Protection from red
    this.addAbility(new ProtectionAbility(filter));
  }
View Full Code Here

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

        // Protection from blue
        this.addAbility(new ProtectionAbility(filter1));
        // Whenever Goblin Piledriver attacks, it gets +2/+0 until end of turn for each other attacking Goblin.
        PermanentsOnBattlefieldCount value = new PermanentsOnBattlefieldCount(filter2, 2);
        this.addAbility(new AttacksTriggeredAbility(new BoostSourceEffect(value, new StaticValue(0), Duration.EndOfTurn, true), false));
    }
View Full Code Here

class AcromasBlessingEffect extends GainAbilityControlledEffect {

    private final FilterCard filter2;

    public AcromasBlessingEffect() {
        super(new ProtectionAbility(new FilterCard()), Duration.EndOfTurn);
        filter2 = (FilterCard)((ProtectionAbility)getFirstAbility()).getFilter();
        staticText = "Choose a color. Creatures you control gain protection from the chosen color until end of turn";
    }
View Full Code Here

    @Override
    public boolean apply(Game game, Ability source) {
        ChoiceColor choice = (ChoiceColor) source.getChoices().get(0);
        filter2.add(new ColorPredicate(choice.getColor()));
        filter2.setMessage(choice.getChoice());
        setAbility(new ProtectionAbility(new FilterCard(filter2)));
        return super.apply(game, source);
    }
View Full Code Here

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // Haste
        this.addAbility(HasteAbility.getInstance());
        // protection from white
        this.addAbility(new ProtectionAbility(filter));
        // {5}{R}{R}: Monstrosity 3.
        this.addAbility(new MonstrosityAbility("{5}{R}{R}",3));
        // When Stormbreath Dragon becomes monstrous, it deals damage to each opponent equal to the number of cards in that player's hand.
        this.addAbility(new BecomesMonstrousSourceTriggeredAbility(new StormbreathDragonDamageEffect()));
    }
View Full Code Here

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

        // Protection from green
        this.addAbility(new ProtectionAbility(filter));
        // At the beginning of each end step, if Dunerider Outlaw dealt damage to an opponent this turn, put a +1/+1 counter on it.
        TriggeredAbility triggered = new OnEventTriggeredAbility(GameEvent.EventType.END_TURN_STEP_PRE, "beginning of each end step", true, new AddCountersSourceEffect(CounterType.P1P1.createInstance()));
        this.addAbility(new ConditionalTriggeredAbility(triggered, new DealtDamageToAnOpponent(), ruleText));
    }
View Full Code Here

        this.toughness = new MageInt(3);

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // protection from black
        this.addAbility(new ProtectionAbility(filter));

        // Suspend 3-{1}{W}
        this.addAbility(new SuspendAbility(3, new ManaCostsImpl("{1}{W}"), this));
    }
View Full Code Here

        // Mistcutter Hydra can't be countered.
        this.addAbility(new CantCounterAbility());
        // Haste
        this.addAbility(HasteAbility.getInstance());
        // protection from blue
        this.addAbility(new ProtectionAbility(filter));
        // Mistcutter Hydra enters the battlefield with X +1/+1 counters on it.
        this.addAbility(new EntersBattlefieldAbility(new MistcutterHydraEffect()));
    }
View Full Code Here

TOP

Related Classes of mage.abilities.keyword.ProtectionAbility

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.