Package mage.abilities.common

Examples of mage.abilities.common.ActivateIfConditionActivatedAbility.addCost()


        // {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);
    }

    public ShelldockIsle(final ShelldockIsle card) {
        super(card);
View Full Code Here


        // {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

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.