Package mage.abilities.decorator

Examples of mage.abilities.decorator.ConditionalActivatedAbility


       
        this.addAbility(FlyingAbility.getInstance());
        this.addAbility(HasteAbility.getInstance());
        // Metalcraft - : Return Kuldotha Phoenix from your graveyard to the battlefield.
        // Activate this ability only during your upkeep and only if you control three or more artifacts.       
        Ability ability = new ConditionalActivatedAbility(Zone.GRAVEYARD,
                new ReturnSourceFromGraveyardToBattlefieldEffect(true),
                new ManaCostsImpl("{4}"),
                new IsStepCondition(PhaseStep.UPKEEP),
                null
        );       
        ability.addCost(new MetalcraftCost());      
        this.addAbility(ability);
    }
View Full Code Here


        effect = new GainAbilityAttachedEffect(HasteAbility.getInstance(), AttachmentType.EQUIPMENT);
        effect.setText(" and haste");
        ability.addEffect(effect);
        this.addAbility(ability);
        // {1}: If you control Equipment named Helm of Kaldra, Sword of Kaldra, and Shield of Kaldra, put a legendary 4/4 colorless Avatar creature token named Kaldra onto the battlefield and attach those Equipment to it.
        this.addAbility(new ConditionalActivatedAbility(
                Zone.BATTLEFIELD,
                new HelmOfKaldraEffect(),
                new GenericManaCost(1),
                new HelmOfKaldraCondition(),
                "{1}: If you control Equipment named Helm of Kaldra, Sword of Kaldra, and Shield of Kaldra, put a legendary 4/4 colorless Avatar creature token named Kaldra onto the battlefield and attach those Equipment to it"));
View Full Code Here

                new BeginningOfUpkeepTriggeredAbility(Zone.ALL, new GainLifeEffect(1), TargetController.YOU, true),
                SourceOnBattelfieldOrGraveyardCondition.getInstance(),
                "At the beginning of your upkeep, if {this} is in your graveyard or on the battlefield, you may gain 1 life", true);
        this.addAbility(ability);
        // {6}{R}{R}{W}{W}: Return Firemane Angel from your graveyard to the battlefield. Activate this ability only during your upkeep.
        this.addAbility(new ConditionalActivatedAbility(Zone.GRAVEYARD,
                new ReturnSourceFromGraveyardToBattlefieldEffect(), new ManaCostsImpl("{6}{R}{R}{W}{W}"), new IsStepCondition(PhaseStep.UPKEEP), null));       
    }
View Full Code Here

        this.expansionSetCode = "ALA";

        this.color.setWhite(true);

        // {tap}, Sacrifice Scourglass: Destroy all permanents except for artifacts and lands. Activate this ability only during your upkeep.
        this.addAbility(new ConditionalActivatedAbility(Zone.BATTLEFIELD,
                new DestroyAllEffect(filter), new TapSourceCost()new IsStepCondition(PhaseStep.UPKEEP), null));
    }
View Full Code Here

        // Hammer of Bogardan deals 3 damage to target creature or player.
        this.getSpellAbility().addEffect(new DamageTargetEffect(3));
        this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());

        // {2}{R}{R}{R}: Return Hammer of Bogardan from your graveyard to your hand. Activate this ability only during your upkeep.
        this.addAbility(new ConditionalActivatedAbility(Zone.GRAVEYARD,
                new ReturnSourceFromGraveyardToHandEffect(), new ManaCostsImpl("{2}{R}{R}{R}"), new IsStepCondition(PhaseStep.END_COMBAT), null));
    }
View Full Code Here

        // {GU}: Groundling Pouncer gets +1/+3 and gains flying until end of turn. Activate this ability only once each turn and only if an opponent controls a creature with flying.
        Condition condition = new GroundingPouncerCondition();
        Effect effect = new BoostSourceEffect(1, 3, Duration.EndOfTurn);
        Effect effect2 = new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn, false, true);
        Ability ability = new ConditionalActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{G/U}"), condition, rule);
        ability.addEffect(effect2);
        this.addAbility(ability);
        this.addWatcher(new ActivatedAbilityUsedThisTurnWatcher());

    }
View Full Code Here

        this.subtype.add("Desert");

        // {tap}: Add {1} to your mana pool.
        this.addAbility(new ColorlessManaAbility());
        // {tap}: Desert deals 1 damage to target attacking creature. Activate this ability only during the end of combat step.
        Ability ability = new ConditionalActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new TapSourceCost(), new IsStepCondition(PhaseStep.END_COMBAT, false), null);
        Target target = new TargetCreaturePermanent(filter);
        ability.addTarget(target);
        this.addAbility(ability);
    }
View Full Code Here

        // Flying
        this.addAbility(FlyingAbility.getInstance());

        // {3}{W}{W}: Return Eternal Dragon from your graveyard to your hand. Activate this ability only during your upkeep.       
        Ability ability = new ConditionalActivatedAbility(Zone.GRAVEYARD,
                new ReturnToHandSourceEffect(),
                new ManaCostsImpl("{3}{W}{W}"),
                new IsStepCondition(PhaseStep.UPKEEP),
                null
        );         
View Full Code Here

TOP

Related Classes of mage.abilities.decorator.ConditionalActivatedAbility

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.