Package mage.abilities.common

Examples of mage.abilities.common.ActivateIfConditionActivatedAbility


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

        // Metalcraft - {T}: Tap target artifact, creature, or land. Activate this ability only if you control three or more artifacts.
        Ability ability = new ActivateIfConditionActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new TapSourceCost(), MetalcraftCondition.getInstance());
        ability.setAbilityWord(AbilityWord.METALCRAFT);
        ability.addTarget(new TargetPermanent(filter));
        this.addAbility(ability);
    }
View Full Code Here


        // Hideaway
        this.addAbility(new HideawayAbility(this));
        // {tap}: Add {U} to your mana pool.
        this.addAbility(new BlueManaAbility());
        // {U}, {tap}: You may play the exiled card without paying its mana cost if a library has twenty or fewer cards in it.
        Ability ability = new ActivateIfConditionActivatedAbility(
                Zone.BATTLEFIELD, new HideawayPlayEffect(), new ManaCostsImpl("{U}"), new CardsInAnyLibraryCondition(Condition.ComparisonType.LessThan, 21));
        ability.addCost(new TapSourceCost());
        this.addAbility(ability);
    }
View Full Code Here

        // Hideaway (This land enters the battlefield tapped. When it does, look at the top four cards of your library, exile one face down, then put the rest on the bottom of your library.)
        this.addAbility(new HideawayAbility(this));
        // {tap}: Add {W} to your mana pool.
        this.addAbility(new WhiteManaAbility());
        // {W}, {tap}: You may play the exiled card without paying its mana cost if you attacked with three or more creatures this turn.
        Ability ability = new ActivateIfConditionActivatedAbility(
                Zone.BATTLEFIELD, new HideawayPlayEffect(), new ManaCostsImpl("{W}"), WindbriskHeightsAttackersCondition.getInstance());
        ability.addCost(new TapSourceCost());
        this.addAbility(ability);    
       
        this.addWatcher(new PlayerAttackedWatcher());

    }
View Full Code Here

        this.toughness = new MageInt(7);

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // {tap}: Exchange control of two target nonlegendary creatures. You can't activate this ability during combat.
        Ability ability = new ActivateIfConditionActivatedAbility(
                Zone.BATTLEFIELD,
                new ExchangeControlTargetEffect(Duration.EndOfGame, rule),
                new TapSourceCost(),
                new InvertCondition(new IsPhaseCondition(TurnPhase.COMBAT)));
        ability.addTarget(new TargetCreaturePermanent(2,2, filter, false));
        this.addAbility(ability);
    }
View Full Code Here

TOP

Related Classes of mage.abilities.common.ActivateIfConditionActivatedAbility

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.