Examples of AsEntersBattlefieldAbility


Examples of mage.abilities.common.AsEntersBattlefieldAbility

        this.getSpellAbility().addTarget(auraTarget);
        this.getSpellAbility().addEffect(new AttachEffect(Outcome.Detriment));
        this.addAbility(new EnchantAbility(auraTarget.getTargetName()));
       
        // As Phantasmal Terrain enters the battlefield, choose a basic land type.
        this.addAbility(new AsEntersBattlefieldAbility(new PhantasmalTerrainChooseEffect()));
       
        // Enchanted land is the chosen type.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new PhantasmalTerrainContinuousEffect()));
    }
View Full Code Here

Examples of mage.abilities.common.AsEntersBattlefieldAbility

        this.subtype.add("Construct");
        this.power = new MageInt(0);
        this.toughness = new MageInt(1);

        // As Stuffy Doll enters the battlefield, choose a player.
        this.addAbility(new AsEntersBattlefieldAbility(new StuffyDollChoosePlayerEffect()));
        // Stuffy Doll is indestructible.
        this.addAbility(IndestructibleAbility.getInstance());
        // Whenever Stuffy Doll is dealt damage, it deals that much damage to the chosen player.
        this.addAbility(new StuffyDollTriggeredAbility());
        // {tap}: Stuffy Doll deals 1 damage to itself.
View Full Code Here

Examples of mage.abilities.common.AsEntersBattlefieldAbility

        this.toughness = new MageInt(3);

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // As Voidstone Gargoyle enters the battlefield, name a nonland card.
        this.addAbility(new AsEntersBattlefieldAbility(new VoidstoneGargoyleChooseCardEffect()));
        // The named card can't be cast.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new VoidstoneGargoyleReplacementEffect1()));
        // Activated abilities of sources with the chosen name can't be activated.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new VoidstoneGargoyleRuleModifyingEffect2()));
    }
View Full Code Here

Examples of mage.abilities.common.AsEntersBattlefieldAbility

    public AncientAmphitheater(UUID ownerId) {
        super(ownerId, 266, "Ancient Amphitheater", Rarity.RARE, new CardType[]{CardType.LAND}, "");
        this.expansionSetCode = "LRW";

        // As Ancient Amphitheater enters the battlefield, you may reveal a Giant card from your hand. If you don't, Ancient Amphitheater enters the battlefield tapped.
        this.addAbility(new AsEntersBattlefieldAbility(new TapSourceUnlessPaysEffect(new RevealTargetFromHandCost(new TargetCardInHand(filter))), "you may reveal a Giant card from your hand. If you don't, {this} enters the battlefield tapped"));
        // {tap}: Add {R} or {W} to your mana pool.
        this.addAbility(new RedManaAbility());
        this.addAbility(new WhiteManaAbility());

       
View Full Code Here

Examples of mage.abilities.common.AsEntersBattlefieldAbility

    public GiltLeafPalace(UUID ownerId) {
        super(ownerId, 268, "Gilt-Leaf Palace", Rarity.RARE, new CardType[]{CardType.LAND}, "");
        this.expansionSetCode = "LRW";

        // As Gilt-Leaf Palace enters the battlefield, you may reveal an Elf card from your hand. If you don't, Gilt-Leaf Palace enters the battlefield tapped.
       this.addAbility(new AsEntersBattlefieldAbility(new TapSourceUnlessPaysEffect(new RevealTargetFromHandCost(new TargetCardInHand(filter))), "you may reveal a Elf card from your hand. If you don't, {this} enters the battlefield tapped"));
        // {tap}: Add {B} or {G} to your mana pool.
        this.addAbility(new BlackManaAbility());
        this.addAbility(new GreenManaAbility());

    }
View Full Code Here

Examples of mage.abilities.common.AsEntersBattlefieldAbility

    public WanderwineHub(UUID ownerId) {
        super(ownerId, 280, "Wanderwine Hub", Rarity.RARE, new CardType[]{CardType.LAND}, "");
        this.expansionSetCode = "LRW";

        // As Wanderwine Hub enters the battlefield, you may reveal a Merfolk card from your hand. If you don't, Wanderwine Hub enters the battlefield tapped.
        this.addAbility(new AsEntersBattlefieldAbility(new TapSourceUnlessPaysEffect(new RevealTargetFromHandCost(new TargetCardInHand(filter))), "you may reveal a Merfolk card from your hand. If you don't, {this} enters the battlefield tapped"));
        // {tap}: Add {W} or {U} to your mana pool.
        this.addAbility(new WhiteManaAbility());
        this.addAbility(new BlueManaAbility());

    }
View Full Code Here

Examples of mage.abilities.common.AsEntersBattlefieldAbility

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

        // As True-Name Nemesis enters the battlefield, choose a player.
        this.addAbility(new AsEntersBattlefieldAbility(new TrueNameNemesisChoosePlayerEffect()));
        // True-Name Nemesis has protection from the chosen player.
        this.addAbility(new ProtectionFromPlayerAbility());
    }
View Full Code Here

Examples of mage.abilities.common.AsEntersBattlefieldAbility

        this.expansionSetCode = "RAV";
        this.subtype.add("Forest");
        this.subtype.add("Plains");
        this.addAbility(new GreenManaAbility());
        this.addAbility(new WhiteManaAbility());
        this.addAbility(new AsEntersBattlefieldAbility(new TapSourceUnlessPaysEffect(new PayLifeCost(2)), "you may pay 2 life. If you don't, {this} enters the battlefield tapped"));
    }
View Full Code Here

Examples of mage.abilities.common.AsEntersBattlefieldAbility

    public BelbesPortal(UUID ownerId) {
        super(ownerId, 127, "Belbe's Portal", Rarity.RARE, new CardType[]{CardType.ARTIFACT}, "{5}");
        this.expansionSetCode = "NMS";

        // As Belbe's Portal enters the battlefield, choose a creature type.
        this.addAbility(new AsEntersBattlefieldAbility(new ChooseCreatureTypeEffect(Outcome.PutCreatureInPlay)));
        // {3}, {tap}: You may put a creature card of the chosen type from your hand onto the battlefield.
        SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
                new BelbesPortalPutCreatureOnBattlefieldEffect(),
                new ManaCostsImpl("{3}"));
        ability.addCost(new TapSourceCost());
View Full Code Here

Examples of mage.abilities.common.AsEntersBattlefieldAbility

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

        // As Nyxathid enters the battlefield, choose an opponent.
        this.addAbility(new AsEntersBattlefieldAbility(new ChooseOpponent()));

        // Nyxathid gets -1/-1 for each card in the chosen player's hand.
        DynamicValue chosenPlayerHand = new SignInversionDynamicValue(new CardsInChosenPlayerHandCount());
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostSourceEffect(chosenPlayerHand, chosenPlayerHand, Duration.WhileOnBattlefield)));
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.