Package mage.abilities.common

Examples of mage.abilities.common.EntersBattlefieldAbility


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

        // Ivy Elemental enters the battlefield with X +1/+1 counters on it.
        this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance(), new ManacostVariableValue(), true), "with X +1/+1 counters on it"));
    }
View Full Code Here


        this.toughness = new MageInt(5);

        // Shroud
        this.addAbility(ShroudAbility.getInstance());
        // Vanishing 4
        this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.TIME.createInstance(4))));
        this.addAbility(new VanishingUpkeepAbility(4));
        this.addAbility(new VanishingSacrificeAbility());
    }
View Full Code Here

        this.subtype.add("Ashiok");

        this.color.setBlue(true);
        this.color.setBlack(true);

        this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.LOYALTY.createInstance(3)), false));

        // +2: Exile the top three cards of target opponent's library.
        LoyaltyAbility ability = new LoyaltyAbility(new AshiokNightmareWeaverExileEffect(), 2);
        ability.addTarget(new TargetOpponent());
        this.addAbility(ability);
View Full Code Here

       // {B}: Regenerate Urborg Skeleton.
       this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{B}")));

       // If Urborg Skeleton was kicked, it enters the battlefield with a +1/+1 counter on it.
       Ability ability = new EntersBattlefieldAbility(
               new AddCountersSourceEffect(CounterType.P1P1.createInstance(1)),
               KickedCondition.getInstance(),false, staticText,"");
       this.addAbility(ability);
    }
View Full Code Here

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

        // Vanishing 2
        this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.TIME.createInstance(2))));
        this.addAbility(new VanishingUpkeepAbility(2));
        this.addAbility(new VanishingSacrificeAbility());
        // When Keldon Marauders enters the battlefield or leaves the battlefield, it deals 1 damage to target player.
        Ability ability = new EntersBattlefieldTriggeredAbility(new DamageTargetEffect(1), false);
        ability.addTarget(new TargetPlayer());
View Full Code Here

        this.toughness = new MageInt(0);

        // Clockwork Hydra enters the battlefield with four +1/+1 counters on it.
        Effect effect = new AddCountersSourceEffect(CounterType.P1P1.createInstance(4));
        effect.setText("with four +1/+1 counters on it");
        this.addAbility(new EntersBattlefieldAbility(effect));
        // Whenever Clockwork Hydra attacks or blocks, remove a +1/+1 counter from it. If you do, Clockwork Hydra deals 1 damage to target creature or player.
        this.addAbility(new AttacksOrBlocksTriggeredAbility(new ClockworkHydraEffect(), false));

        // {tap}: Put a +1/+1 counter on Clockwork Hydra.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance(), true), new TapSourceCost()));
View Full Code Here

    public OrochiHatchery(UUID ownerId) {
        super(ownerId, 266, "Orochi Hatchery", Rarity.RARE, new CardType[]{CardType.ARTIFACT}, "{X}{X}");
        this.expansionSetCode = "CHK";

        // Orochi Hatchery enters the battlefield with X charge counters on it.
        this.addAbility(new EntersBattlefieldAbility(new OrochiHatcheryEffect(), "with X charge counters on it"));

        // {5}, {T}: Put a 1/1 green Snake creature token onto the battlefield for each charge counter on Orochi Hatchery.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new SnakeToken(),new CountersCount(CounterType.CHARGE)), new GenericManaCost(5));
        ability.addCost(new TapSourceCost());
        this.addAbility(ability);
View Full Code Here

        this.subtype.add("Demon");
        this.color.setBlack(true);
        this.power = new MageInt(6);
        this.toughness = new MageInt(6);
        this.addAbility(FlyingAbility.getInstance());
        this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.M1M1.createInstance(2)), "{this} enters the battlefield with two -1/-1 counters on it"));
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CarnifexDemonEffect(), new ManaCostsImpl("{B}"));
        ability.addCost(new RemoveCountersSourceCost(CounterType.M1M1.createInstance()));
        this.addAbility(ability);
    }
View Full Code Here

        super(ownerId, 229, "Seachrome Coast", Rarity.RARE, new CardType[]{CardType.LAND}, null);
        this.expansionSetCode = "SOM";

        Condition controls = new InvertCondition(new PermanentsOnTheBattlefieldCondition(filter, PermanentsOnTheBattlefieldCondition.CountType.FEWER_THAN, 4));
        String abilityText = "tap it unless you control fewer than 3 lands";
        this.addAbility(new EntersBattlefieldAbility(new ConditionalOneShotEffect(new TapSourceEffect(), controls, abilityText), abilityText));
        this.addAbility(new WhiteManaAbility());
        this.addAbility(new BlueManaAbility());
    }
View Full Code Here

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

        // Golgari Grave-Troll enters the battlefield with a +1/+1 counter on it for each creature card in your graveyard.
        this.addAbility(new EntersBattlefieldAbility(new GolgariGraveTrollEffect(), "with a +1/+1 counter on it for each creature card in your graveyard"));
        // {1}, Remove a +1/+1 counter from Golgari Grave-Troll: Regenerate Golgari Grave-Troll.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{1}"));
        ability.addCost(new RemoveCountersSourceCost(CounterType.P1P1.createInstance()));
        this.addAbility(ability);
        // Dredge 6
View Full Code Here

TOP

Related Classes of mage.abilities.common.EntersBattlefieldAbility

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.