Package mage.abilities.common

Examples of mage.abilities.common.EmptyEffect


    }

    @Override
    protected void init(UUID choosingPlayerId, GameOptions gameOptions) {
        super.init(choosingPlayerId, gameOptions);
        Ability ability = new SimpleStaticAbility(Zone.COMMAND, new EmptyEffect("Commander effects"));
        //Move commander to command zone
        for (UUID playerId: state.getPlayerList(startingPlayerId)) {
            Player player = getPlayer(playerId);
            if (player != null){
                if (player.getSideboard().size() > 0){
View Full Code Here


class KeranosGodOfStormsTriggeredAbility extends TriggeredAbilityImpl {

    private int lastTriggeredTurn;
   
    KeranosGodOfStormsTriggeredAbility() {
        super(Zone.BATTLEFIELD, new EmptyEffect(""), false);
    }
View Full Code Here

        // Discard a land card: Put two charge counters on Lightning Storm. You may choose a new target for it. Any player may activate this ability but only if Lightning Storm is on the stack.
        SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.STACK,
                new LightningStormAddCounterEffect() ,
                new DiscardTargetCost(new TargetCardInHand(new FilterLandCard())));
        ability.setMayActivate(TargetController.ANY);
        ability.addEffect(new EmptyEffect("Any player may activate this ability but only if {this} is on the stack"));
        this.addAbility(ability);
    }
View Full Code Here

       
        // Equip {3}
        this.addAbility(new EquipAbility(Outcome.BoostCreature, new GenericManaCost(3)));

        // Ghostfire Blade's equip ability costs {2} less to activate if it targets a colorless creature.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new EmptyEffect("{this}'s equip ability costs {2} less to activate if it targets a colorless creature")));
    }
View Full Code Here

class RowenAbility extends TriggeredAbilityImpl {

    private int lastTriggeredTurn;

    RowenAbility() {
        super(Zone.BATTLEFIELD, new EmptyEffect(""), false);
    }
View Full Code Here

        this.expansionSetCode = "CHK";
        this.supertype.add("Legendary");
        this.subtype.add("Equipment");

        // Konda's Banner can be attached only to a legendary creature.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new EmptyEffect("{this} can be attached only to a legendary creature")));

        // Creatures that share a color with equipped creature get +1/+1.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new KondasBannerColorBoostEffect()));

        // Creatures that share a creature type with equipped creature get +1/+1.
View Full Code Here

        super(ownerId, 157, "O-Naginata", Rarity.UNCOMMON, new CardType[]{CardType.ARTIFACT}, "{1}");
        this.expansionSetCode = "SOK";
        this.subtype.add("Equipment");

        // O-Naginata can be attached only to a creature with 3 or more power.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new EmptyEffect("{this} can be attached only to a creature with 3 or more power")));
       
        // Equipped creature gets +3/+0 and has trample.
        Effect effect = new BoostEquippedEffect(3, 0);
        effect.setText("Equipped creature gets +3/+0");
        Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, effect);
View Full Code Here

        // {1}{G}, Sacrifice Diligent Farmhand: Search your library for a basic land card and put that card onto the battlefield tapped. Then shuffle your library.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(new FilterBasicLandCard()), true), new ManaCostsImpl("{1}{G}"));
        ability.addCost(new SacrificeSourceCost());
        this.addAbility(ability);
        // If Diligent Farmhand is in a graveyard, effects from spells named Muscle Burst count it as a card named Muscle Burst.
        this.addAbility(new SimpleStaticAbility(Zone.ALL, new EmptyEffect("If Diligent Farmhand is in a graveyard, effects from spells named Muscle Burst count it as a card named Muscle Burst")));
    }
View Full Code Here

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // Discard a card: Oona's Prowler gets -2/-0 until end of turn. Any player may activate this ability.
        SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(-2,-0, Duration.EndOfTurn) , new DiscardCardCost());
        ability.setMayActivate(TargetController.ANY);
        ability.addEffect(new EmptyEffect("Any player may activate this ability"));
        this.addAbility(ability);
    }
View Full Code Here

result is save to a state value to be available for the condition of the continuous effect
*/
class OldManOfTheSeaStateBasedTriggeredAbility extends StateTriggeredAbility {

    public OldManOfTheSeaStateBasedTriggeredAbility() {
        super(Zone.BATTLEFIELD, new EmptyEffect(""));
        this.setRuleVisible(false);
        this.usesStack = false;
    }
View Full Code Here

TOP

Related Classes of mage.abilities.common.EmptyEffect

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.