Package mage.abilities.common

Examples of mage.abilities.common.LeavesBattlefieldTriggeredAbility


    filter.setId(this.getId());
    filter.setNotId(true);
    Ability ability1 = new EntersBattlefieldTriggeredAbility(new ExileTargetEffect(this.getId(), "Oblivion Ring exile"), false);
    ability1.addTarget(new TargetPermanent(filter));
    this.addAbility(ability1);
    Ability ability2 = new LeavesBattlefieldTriggeredAbility(new ReturnFromExileEffect(this.getId(), Zone.BATTLEFIELD), false);
    this.addAbility(ability2);
  }
View Full Code Here


        this.color.setBlack(true);
        this.subtype.add("Zombie");
        this.subtype.add("Giant");
        this.power = new MageInt(4);
  this.toughness = new MageInt(4);
        this.addAbility(new LeavesBattlefieldTriggeredAbility(new CreateTokenEffect(new ZombieToken()), false));
        this.addAbility(new UnearthAbility(new ManaCostsImpl("{3}{B}")));
    }
View Full Code Here

                new SacrificeSourceUnlessPaysEffect(new ChampionExileCost(filter, new StringBuilder(card.getName()).append(" championed permanents").toString())),false);
        ability1.setRuleVisible(false);
        card.addAbility(ability1);

        // When this permanent leaves the battlefield, return the exiled card to the battlefield under its owner's control.
        Ability ability2 = new LeavesBattlefieldTriggeredAbility(new ReturnFromExileForSourceEffect(Zone.BATTLEFIELD), false);
        ability2.setRuleVisible(false);
        card.addAbility(ability2);
    }
View Full Code Here

        filter.add(new AnotherPredicate());
        Ability ability1 = new EntersBattlefieldTriggeredAbility(new ExileTargetForSourceEffect("Journey to Nowhere exile"), false);
        Target target = new TargetPermanent(filter);
        ability1.addTarget(target);
        this.addAbility(ability1);
        Ability ability2 = new LeavesBattlefieldTriggeredAbility(new ReturnFromExileForSourceEffect(Zone.BATTLEFIELD), false);
        this.addAbility(ability2);
    }
View Full Code Here

        // When Sengir Autocrat enters the battlefield, put three 0/1 black Serf creature tokens onto the battlefield.
        Ability ability = new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new SerfToken(), 3));
        this.addAbility(ability);
        // When Sengir Autocrat leaves the battlefield, exile all Serf tokens.
        ability = new LeavesBattlefieldTriggeredAbility(new ExileAllEffect(filter), false);
        this.addAbility(ability);
    }
View Full Code Here

        this.toughness = new MageInt(3);

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // When Reveillark leaves the battlefield, return up to two target creature cards with power 2 or less from your graveyard to the battlefield.
        Ability ability = new LeavesBattlefieldTriggeredAbility(new ReturnFromGraveyardToBattlefieldTargetEffect(), false);
        ability.addTarget(new TargetCardInYourGraveyard(0,2,filter));
        this.addAbility(ability);       
        // Evoke {5}{W}
        this.addAbility(new EvokeAbility(this, "{5}{W}"));
    }
View Full Code Here

        this.color.setGreen(true);
        this.power = new MageInt(7);
        this.toughness = new MageInt(7);

        // When Walker of the Grove leaves the battlefield, put a 4/4 green Elemental creature token onto the battlefield.
        this.addAbility(new LeavesBattlefieldTriggeredAbility(new CreateTokenEffect(new WalkerOfTheGroveToken(),1),false));
        // Evoke {4}{G}
        this.addAbility(new EvokeAbility(this, "{4}{G}"));
    }
View Full Code Here

        this.color.setBlue(true);
        this.power = new MageInt(3);
        this.toughness = new MageInt(3);

        // When Slithermuse leaves the battlefield, choose an opponent. If that player has more cards in hand than you, draw cards equal to the difference.
        this.addAbility(new LeavesBattlefieldTriggeredAbility(new SlithermuseEffect(), false));
        // Evoke {3}{U}
        this.addAbility(new EvokeAbility(this, "{3}{U}"));
    }
View Full Code Here

        this.toughness = new MageInt(3);

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // When Nevermaker leaves the battlefield, put target nonland permanent on top of its owner's library.
        Ability ability = new LeavesBattlefieldTriggeredAbility(new PutOnLibraryTargetEffect(true), false);
        Target target = new TargetNonlandPermanent();
        ability.addTarget(target);
        this.addAbility(ability);

        // Evoke {3}{U}
        this.addAbility(new EvokeAbility(this, "{3}{U}"));
    }
View Full Code Here

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

        // When Meadowboon leaves the battlefield, put a +1/+1 counter on each creature target player controls.
        Ability ability = new LeavesBattlefieldTriggeredAbility(new MeadowboonEffect(), false);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
        // Evoke {3}{W}
        this.addAbility(new EvokeAbility(this, "{3}{W}"));
    }
View Full Code Here

TOP

Related Classes of mage.abilities.common.LeavesBattlefieldTriggeredAbility

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.