Package mage.abilities.effects

Examples of mage.abilities.effects.EntersBattlefieldEffect


* @author BetaSteward_at_googlemail.com
*/
public class EntersBattlefieldAbility extends StaticAbility<EntersBattlefieldAbility> {

  public EntersBattlefieldAbility(Effect effect, String rule) {
    super(Zone.BATTLEFIELD, new EntersBattlefieldEffect(effect, rule));
  }
View Full Code Here


* @author BetaSteward_at_googlemail.com
*/
public class EntersBattlefieldTappedAbility extends StaticAbility<EntersBattlefieldTappedAbility> {

  public EntersBattlefieldTappedAbility() {
    super(Zone.BATTLEFIELD, new EntersBattlefieldEffect(new TapSourceEffect()));
  }
View Full Code Here

class GraftStaticAbility extends StaticAbility {

    private String ruleText;

    public GraftStaticAbility(int amount) {
        super(Zone.BATTLEFIELD, new EntersBattlefieldEffect(new AddCountersSourceEffect(CounterType.P1P1.createInstance(amount))));
        ruleText = new StringBuilder("This enters the battlefield with ").append(amount).append(" +1/+1 counter on it.").toString();
        this.setRuleVisible(false);
    }
View Full Code Here

* @author North
*/
public class AsEntersBattlefieldAbility extends StaticAbility {

    public AsEntersBattlefieldAbility(Effect effect) {
        super(Zone.BATTLEFIELD, new EntersBattlefieldEffect(effect));
    }
View Full Code Here

    public AsEntersBattlefieldAbility(Effect effect) {
        super(Zone.BATTLEFIELD, new EntersBattlefieldEffect(effect));
    }

    public AsEntersBattlefieldAbility(Effect effect, String text) {
        super(Zone.BATTLEFIELD, new EntersBattlefieldEffect(effect, text));
    }
View Full Code Here

* @param showRule show a rule for this ability
* @param abilityRule rule for this ability (no text from effects will be added)
* @param effectText this text will be used for the EnterBattlefieldEffect
*/
    public EntersBattlefieldAbility(Effect effect, Condition condition, Boolean showRule, String abilityRule, String effectText) {
        super(Zone.BATTLEFIELD, new EntersBattlefieldEffect(effect, condition, effectText));
        this.showRule = showRule;
        this.abilityRule = abilityRule;
    }
View Full Code Here

public class EntersBattlefieldTappedAbility extends StaticAbility {

    private String ruleText;
   
    public EntersBattlefieldTappedAbility() {
        super(Zone.BATTLEFIELD, new EntersBattlefieldEffect(new TapSourceEffect(true)));
    }
View Full Code Here

class ModularStaticAbility extends StaticAbility {

    private String ruleText;

    public ModularStaticAbility(int amount) {
        super(Zone.BATTLEFIELD, new EntersBattlefieldEffect(new AddCountersSourceEffect(CounterType.P1P1.createInstance(amount))));
        ruleText = new StringBuilder("This enters the battlefield with ").append(CardUtil.numberToText(amount, "a"))
                .append(" +1/+1 counter").append(amount != 1 ? "s":"")
                .append(" on it.").toString();
        this.setRuleVisible(false);
    }
View Full Code Here

* exile zone.'"
*/
public class HideawayAbility extends StaticAbility {

    public HideawayAbility(Card card) {
        super(Zone.BATTLEFIELD, new EntersBattlefieldEffect(new TapSourceEffect(true)));
        Ability ability = new EntersBattlefieldTriggeredAbility(new HideawayExileEffect(), false);
        ability.setRuleVisible(false);
        card.addAbility(ability);
        // Allow controller to look at face down card
        ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new HideawayLookAtFaceDownCardEffect());
View Full Code Here

        this.power = new MageInt(0);
        this.toughness = new MageInt(0);

        // You have may Clever Impersonator enter the battlefield as a copy of any nonland permanent on the battlefield.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD,
                new EntersBattlefieldEffect(new CopyPermanentEffect(new FilterNonlandPermanent()),
                        "You may have {this} enter the battlefield as a copy of any nonland permanent on the battlefield",
                        true)));
    }
View Full Code Here

TOP

Related Classes of mage.abilities.effects.EntersBattlefieldEffect

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.