Examples of ConditionalGainActivatedAbility


Examples of mage.abilities.decorator.ConditionalGainActivatedAbility

        this.toughness = new MageInt(2);

        this.addAbility(new CantBlockAbility());

        // As long as you control a Demon, Villainous Ogre has "{B}: Regenerate Villainous Ogre.
        this.addAbility(new ConditionalGainActivatedAbility(
                Zone.BATTLEFIELD,
                new RegenerateSourceEffect(),
                new ColoredManaCost(ColoredManaSymbol.B),
                new PermanentsOnTheBattlefieldCondition(filter),
                rule));       
View Full Code Here

Examples of mage.abilities.decorator.ConditionalGainActivatedAbility

        Ability manaAbility = new GreenManaAbility();
        manaAbility.addEffect(new DamageControllerEffect(1));
        this.addAbility(manaAbility);

        // Threshold - {G}, {tap}, Sacrifice Centaur Garden: Target creature gets +3/+3 until end of turn. Activate this ability only if seven or more cards are in your graveyard.
        Ability thresholdAbility = new ConditionalGainActivatedAbility(Zone.BATTLEFIELD,
            new BoostTargetEffect(+3,+3, Duration.EndOfTurn),
            new ManaCostsImpl("{G}"),
            new CardsInControllerGraveCondition(7),
            "<i>Threshold</i> - {G}, {T}, Sacrifice {this}: Target creature gets +3/+3 until end of turn. Activate this ability only if seven or more cards are in your graveyard.");
        thresholdAbility.addCost(new TapSourceCost());
        thresholdAbility.addCost(new SacrificeSourceCost());
        thresholdAbility.addTarget(new TargetCreaturePermanent());
        this.addAbility(thresholdAbility);
    }
View Full Code Here

Examples of mage.abilities.decorator.ConditionalGainActivatedAbility

        this.toughness = new MageInt(1);

        // Trample
        this.addAbility(TrampleAbility.getInstance());
        // Threshold - {1}{G}: Regenerate Krosan Avenger. Activate this ability only if seven or more cards are in your graveyard.
        Ability thresholdAbility = new ConditionalGainActivatedAbility(Zone.BATTLEFIELD,
                                                                        new RegenerateSourceEffect(),
                                                                        new ManaCostsImpl("{1}{G}"),
                                                                        new CardsInControllerGraveCondition(7),
                                                                        "<i>Threshold</i> - {1}{G}: Regenerate {this}. Activate this ability only if seven or more cards are in your graveyard.");
        this.addAbility(thresholdAbility);
View Full Code Here

Examples of mage.abilities.decorator.ConditionalGainActivatedAbility

        Ability redManaAbility = new RedManaAbility();
        redManaAbility.addEffect(new DamageControllerEffect(1));
        this.addAbility(redManaAbility);

        // Threshold - {R}, {T}, Sacrifice Barbarian Ring: Barbarian Ring deals 2 damage to target creature or player. Activate this ability only if seven or more cards are in your graveyard.
        Ability thresholdAbility = new ConditionalGainActivatedAbility(Zone.BATTLEFIELD,
            new DamageTargetEffect(2),
            new ManaCostsImpl("{R}"),
            new CardsInControllerGraveCondition(7),
            "<i>Threshold</i> - {R}, {T}, Sacrifice {this}: {this} deals 2 damage to target creature or player. Activate this ability only if seven or more cards are in your graveyard.");
        thresholdAbility.addCost(new TapSourceCost());
        thresholdAbility.addCost(new SacrificeSourceCost());
        thresholdAbility.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(thresholdAbility);
    }
View Full Code Here

Examples of mage.abilities.decorator.ConditionalGainActivatedAbility

        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1),new ManaCostsImpl("{1}{R}"));
        ability.addCost(new TapSourceCost());
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
        // Threshold - {2}{R}, {tap}: Chainflinger deals 2 damage to target creature or player. Activate this ability only if seven or more cards are in your graveyard.
        Ability thresholdAbility = new ConditionalGainActivatedAbility(Zone.BATTLEFIELD,
            new DamageTargetEffect(2),
            new ManaCostsImpl("2}{R}"),
            new CardsInControllerGraveCondition(7),
            "<i>Threshold</i> - {2}{R}, {t}: {this} deals 2 damage to target creature or player. Activate this ability only if seven or more cards are in your graveyard.");
        thresholdAbility.addCost(new TapSourceCost());
        thresholdAbility.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(thresholdAbility);
    }
View Full Code Here

Examples of mage.abilities.decorator.ConditionalGainActivatedAbility

        // {tap}: Prevent the next 2 damage that would be dealt to target creature or player this turn.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PreventDamageToTargetEffect(Duration.EndOfTurn,2), new TapSourceCost());
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
        // Threshold - {tap}: Prevent the next 4 damage that would be dealt to target creature or player this turn. Activate this ability only if seven or more cards are in your graveyard.
        Ability thresholdAbility = new ConditionalGainActivatedAbility(Zone.BATTLEFIELD,
                                                                        new PreventDamageToTargetEffect(Duration.EndOfTurn,4),
                                                                        new TapSourceCost(),
                                                                        new CardsInControllerGraveCondition(7),
                                                                        "<i>Threshold</i> - {T}: Prevent the next 4 damage that would be dealt to target creature or player this turn. Activate this ability only if seven or more cards are in your graveyard.");
        thresholdAbility.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(thresholdAbility);
    }
View Full Code Here

Examples of mage.abilities.decorator.ConditionalGainActivatedAbility

        Ability manaAbility = new BlackManaAbility();
        manaAbility.addEffect(new DamageControllerEffect(1));
        this.addAbility(manaAbility);

        // Threshold - {B}, {T}, Sacrifice Cabal Pit: Target creature gets -2/-2 until end of turn. Activate this ability only if seven or more cards are in your graveyard.
        Ability thresholdAbility = new ConditionalGainActivatedAbility(Zone.BATTLEFIELD,
            new BoostTargetEffect(-2,-2, Duration.EndOfTurn),
            new ManaCostsImpl("{B}"),
            new CardsInControllerGraveCondition(7),
            "<i>Threshold</i> - {B}, {T}, Sacrifice {this}: Target creature gets -2/-2 until end of turn. Activate this ability only if seven or more cards are in your graveyard.");
        thresholdAbility.addCost(new TapSourceCost());
        thresholdAbility.addCost(new SacrificeSourceCost());
        thresholdAbility.addTarget(new TargetCreaturePermanent());
        this.addAbility(thresholdAbility);
    }
View Full Code Here

Examples of mage.abilities.decorator.ConditionalGainActivatedAbility

        Ability manaAbility = new BlueManaAbility();
        manaAbility.addEffect(new DamageControllerEffect(1));
        this.addAbility(manaAbility);

        // Threshold - {U}, {tap}, Sacrifice Cephalid Coliseum: Target player draws three cards, then discards three cards. Activate this ability only if seven or more cards are in your graveyard.
        Ability thresholdAbility = new ConditionalGainActivatedAbility(Zone.BATTLEFIELD,
            new DrawCardTargetEffect(3),
            new ManaCostsImpl("{U}"),
            new CardsInControllerGraveCondition(7),
            "<i>Threshold</i> - {U}, {T}, Sacrifice {this}: Target player draws three cards, then discards three cards. Activate this ability only if seven or more cards are in your graveyard.");
        thresholdAbility.addEffect(new DiscardTargetEffect(3));
        thresholdAbility.addCost(new TapSourceCost());
        thresholdAbility.addCost(new SacrificeSourceCost());
        thresholdAbility.addTarget(new TargetPlayer());
        this.addAbility(thresholdAbility);
    }
View Full Code Here

Examples of mage.abilities.decorator.ConditionalGainActivatedAbility

        Ability manaAbility = new WhiteManaAbility();
        manaAbility.addEffect(new DamageControllerEffect(1));
        this.addAbility(manaAbility);

        // Threshold - {W}, {tap}, Sacrifice Nomad Stadium: You gain 4 life. Activate this ability only if seven or more cards are in your graveyard.
        Ability thresholdAbility = new ConditionalGainActivatedAbility(Zone.BATTLEFIELD,
            new GainLifeEffect(4),
            new ManaCostsImpl("{W}"),
            new CardsInControllerGraveCondition(7),
            "<i>Threshold</i> - {W}, {T}, Sacrifice {this}: You gain 4 life. Activate this ability only if seven or more cards are in your graveyard.");
        thresholdAbility.addCost(new TapSourceCost());
        thresholdAbility.addCost(new SacrificeSourceCost());
        this.addAbility(thresholdAbility);
    }
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.