Package mage.abilities.common

Examples of mage.abilities.common.SimpleStaticAbility.addEffect()


        effect = new GainAbilityAttachedEffect(TrampleAbility.getInstance(), AttachmentType.EQUIPMENT);
        effect.setText("and has trample");
        ability.addEffect(effect);
        effect = new GainAbilityAttachedEffect(LifelinkAbility.getInstance(), AttachmentType.EQUIPMENT);
        effect.setText("and lifelink. <i>(If the creature would assign enough damage to its blockers to destroy them, you may have it assign the rest of its damage to defending player or planeswalker. Damage dealt by the creature also causes its controller to gain that much life.)<i/>");
        ability.addEffect(effect);
        this.addAbility(ability);

        // Equip (: Attach to target creature you control. Equip only as a sorcery.)
        this.addAbility(new EquipAbility(Outcome.BoostCreature, new GenericManaCost(3)));
    }
View Full Code Here


        this.subtype.add("Equipment");

        // Equipped creature has flying and haste.
        Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD,
                new GainAbilityAttachedEffect(FlyingAbility.getInstance(), AttachmentType.AURA, Duration.WhileInGraveyard));
        ability.addEffect(new GainAbilityAttachedEffect(HasteAbility.getInstance(), AttachmentType.AURA, Duration.WhileInGraveyard));
        this.addAbility(ability);
        // Equip {2}
        this.addAbility(new EquipAbility(Outcome.AddAbility, new GenericManaCost(2)));
    }
View Full Code Here

        this.addAbility(ability);

        // Enchanted creature gets +2/+1 and has "{R}: This creature gains trample until end of turn."
        SimpleStaticAbility ability2 = new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(2, 1, Duration.WhileOnBattlefield));
        Ability gainedAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(TrampleAbility.getInstance(),Duration.EndOfTurn),new ManaCostsImpl("{R}"));
        ability2.addEffect(new GainAbilityAttachedEffect(gainedAbility, AttachmentType.AURA, Duration.WhileOnBattlefield, rule));
        this.addAbility(ability2);
    }

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

        // Threshold - As long as seven or more cards are in your graveyard, Wayward Angel gets +3/+3, is black, has trample, and has "At the beginning of your upkeep, sacrifice a creature."
        Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new ConditionalContinousEffect(
                new BoostSourceEffect(3, 3, Duration.WhileOnBattlefield),
                new CardsInControllerGraveCondition(7),
                "<i>Threshold</i> - As long as seven or more cards are in your graveyard, {this} gets +3/+3,"));
        ability.addEffect(new ConditionalContinousEffect(
                new SetCardColorSourceEffect(ObjectColor.BLACK, Duration.WhileOnBattlefield),
                new CardsInControllerGraveCondition(7),
                " is black,"));
        ability.addEffect(new ConditionalContinousEffect(
                new GainAbilitySourceEffect(TrampleAbility.getInstance()),
View Full Code Here

                "<i>Threshold</i> - As long as seven or more cards are in your graveyard, {this} gets +3/+3,"));
        ability.addEffect(new ConditionalContinousEffect(
                new SetCardColorSourceEffect(ObjectColor.BLACK, Duration.WhileOnBattlefield),
                new CardsInControllerGraveCondition(7),
                " is black,"));
        ability.addEffect(new ConditionalContinousEffect(
                new GainAbilitySourceEffect(TrampleAbility.getInstance()),
                new CardsInControllerGraveCondition(7),
                " has trample,"));
       
        Ability gainedAbility = new BeginningOfUpkeepTriggeredAbility(new SacrificeControllerEffect(new FilterControlledCreaturePermanent(), 1, ""), TargetController.YOU, false);
View Full Code Here

                new CardsInControllerGraveCondition(7),
                " has trample,"));
       
        Ability gainedAbility = new BeginningOfUpkeepTriggeredAbility(new SacrificeControllerEffect(new FilterControlledCreaturePermanent(), 1, ""), TargetController.YOU, false);
       
        ability.addEffect(new ConditionalContinousEffect(
                new GainAbilitySourceEffect(gainedAbility),
                new CardsInControllerGraveCondition(7),
                " and has \"At the beginning of your upkeep, sacrifice a creature.\" "));
       
        this.addAbility(ability);
View Full Code Here

        // Vigilance
        this.addAbility(VigilanceAbility.getInstance());
        // Threshold - As long as seven or more cards are in your graveyard, Mystic Penitent gets +1/+1 and has flying.
        Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new ConditionalContinousEffect(
                                                                    new BoostSourceEffect(1, 1, Duration.WhileOnBattlefield), new CardsInControllerGraveCondition(7), "<i>Threshold</i> - As long as seven or more cards are in your graveyard, {this} gets +1/+1"));
        ability.addEffect(new ConditionalContinousEffect(new GainAbilitySourceEffect(FlyingAbility.getInstance()), new CardsInControllerGraveCondition(7), "and has flying"));
        this.addAbility(ability);
    }

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

        this.power = new MageInt(1);
        this.toughness = new MageInt(1);

        // Sneaky Homunculus can't block or be blocked by creatures with power 2 or greater.
        Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBeBlockedByCreaturesSourceEffect(filter, Duration.WhileOnBattlefield));
        ability.addEffect(new CantBlockCreaturesSourceEffect(filter));
        this.addAbility(ability);
    }

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

        // Nighthowler and enchanted creature each get +X/+X, where X is the number of creature cards in all graveyards.
        DynamicValue graveCreatures = new CardsInAllGraveyardsCount(new FilterCreatureCard());
        Effect effect = new BoostSourceEffect(graveCreatures, graveCreatures, Duration.WhileOnBattlefield);
        Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, effect);
        effect = new BoostEnchantedEffect(graveCreatures, graveCreatures, Duration.WhileOnBattlefield);
        ability.addEffect(effect);
        this.addAbility(ability);

    }

    public Nighthowler(final Nighthowler card) {
View Full Code Here

        this.addAbility(IntimidateAbility.getInstance());
        // Enchanted creature gets +2/+2 and has intimidate.
        Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(2,2));
        Effect effect = new GainAbilityAttachedEffect(IntimidateAbility.getInstance(), AttachmentType.AURA);
        effect.setText("and has intimidate");
        ability.addEffect(effect);
        this.addAbility(ability);
    }

    public CavernLampad(final CavernLampad card) {
        super(card);
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.