Examples of addEffect()


Examples of mage.abilities.effects.EntersBattlefieldEffect.addEffect()

        // You may have Vesuva enter the battlefield tapped as a copy of any land on the battlefield.
        EntersBattlefieldEffect effect = new EntersBattlefieldEffect(
                new TapSourceEffect(true),
                "You may have {this} enter the battlefield tapped as a copy of any land on the battlefield",
                true);
        effect.addEffect(new CopyPermanentEffect(filter));
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect));
    }

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

Examples of mage.abilities.effects.common.CastSourceTriggeredAbility.addEffect()

        // Trample
        this.addAbility(TrampleAbility.getInstance());
        // When you cast Naya Soulbeast, each player reveals the top card of his or her library. Naya Soulbeast enters the battlefield with X +1/+1 counters on it, where X is the total converted mana cost of all cards revealed this way.
        Ability ability = new CastSourceTriggeredAbility(new NayaSoulbeastCastEffect(), false);
        ability.addEffect(new NayaSoulbeastReplacementEffect());
        this.addAbility(ability);
    }

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

Examples of mage.abilities.effects.common.DoIfCostPaid.addEffect()

        // Whenever you cast a noncreature spell, you may pay {1}. If you do, tap target creature an opponent controls and it doesn't untap during its controller's next untap step.
        DoIfCostPaid doIfCostPaid = new DoIfCostPaid(new TapTargetEffect(), new GenericManaCost(1),"Tap creature?");       
        Effect effect = new SkipNextUntapTargetEffect();
        effect.setText("and it doesn't untap during its controller's next untap step");
        doIfCostPaid.addEffect(effect);
        Ability ability = new SpellCastControllerTriggeredAbility(doIfCostPaid, filterNonCreature, false);
        ability.addTarget(new TargetCreaturePermanent(filter));
        this.addAbility(ability);       
    }
View Full Code Here

Examples of mage.abilities.keyword.BattalionAbility.addEffect()

        //Haste
        this.addAbility(HasteAbility.getInstance());
        //Battalion - Whenever Legion Loyalist and at least two other creatures attack,
        //creatures you control gain first strike and trample until end of turn and can't be blocked by tokens this turn.
        Ability ability = new BattalionAbility(new GainAbilityAllEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn, new FilterControlledCreaturePermanent()));
        ability.addEffect(new GainAbilityAllEffect(TrampleAbility.getInstance(), Duration.EndOfTurn, new FilterControlledCreaturePermanent()));
        ability.addEffect(new CantBeBlockedByTokenEffect());
        this.addAbility(ability);
    }

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

Examples of mage.abilities.keyword.BloodrushAbility.addEffect()

        // Deathtouch
        this.addAbility(DeathtouchAbility.getInstance());
        // Bloodrush - {G}, Discard Wasteland Viper: Target attacking creature gets +1/+2 and gains deathtouch until end of turn.
        Ability ability = new BloodrushAbility("{G}", new BoostTargetEffect(1, 2, Duration.EndOfTurn));
        ability.addEffect(new GainAbilityTargetEffect(DeathtouchAbility.getInstance(), Duration.EndOfTurn));
        this.addAbility(ability);
    }

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

Examples of mage.abilities.keyword.EnchantAbility.addEffect()

        Ability ability = new EnchantAbility(auraTarget.getTargetName());
        this.addAbility(ability);

        // Enchanted creature gets +2/+2 and has protection from creatures.
        ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(2,2, Duration.WhileOnBattlefield));
        ability.addEffect(new GainAbilityAttachedEffect(new ProtectionAbility(new FilterCreaturePermanent("creatures")), AttachmentType.AURA, Duration.WhileOnBattlefield));
        this.addAbility(ability);
    }

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

Examples of mage.abilities.keyword.HauntAbility.addEffect()

        this.addAbility(FlyingAbility.getInstance());
        // Haunt
        // When Blind Hunter enters the battlefield or the creature it haunts dies, target player loses 2 life and you gain 2 life.
        Ability ability = new HauntAbility(this, new LoseLifeTargetEffect(2));
        ability.addTarget(new TargetPlayer());
        ability.addEffect(new GainLifeEffect(2));
        this.addAbility(ability);

    }

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

Examples of mage.abilities.keyword.HeroicAbility.addEffect()

        Effect effect = new BoostSourceEffect(2,0, Duration.EndOfTurn);
        effect.setText("{this} gets +2/+0");
        Ability ability = new HeroicAbility(effect, false);
        effect = new GainAbilitySourceEffect(IntimidateAbility.getInstance(), Duration.EndOfTurn);
        effect.setText("and gains intimidate until end of turn");
        ability.addEffect(effect);
        this.addAbility(ability);
    }

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

Examples of mage.abilities.keyword.InspiredAbility.addEffect()

        // Inspired - Whenever King Macar, the Gold-Cursed becomes untapped, you may exile target creature. If you do, put a colorless artifact token named Gold onto the battlefield. It has "Sacrifice this artifact: Add one mana of any color to your mana pool."
        Ability ability = new InspiredAbility(new ExileTargetEffect(), true);
        ability.addTarget(new TargetCreaturePermanent());
        Effect effect = new CreateTokenEffect(new GoldToken());
        effect.setText("If you do, put a colorless artifact token named Gold onto the battlefield. It has \"Sacrifice this artifact: Add one mana of any color to your mana pool.\"");
        ability.addEffect(effect);       
        this.addAbility(ability);               
    }

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

Examples of mage.abilities.keyword.OverloadAbility.addEffect()

        this.getSpellAbility().addEffect(new GainAbilityTargetEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn));
        this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent());

        // Overload {1}{R}
        Ability ability = new OverloadAbility(this, new BoostAllEffect(1,0, Duration.EndOfTurn, filter, false), new ManaCostsImpl("{1}{R}"));
        ability.addEffect(new GainAbilityAllEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn, filter, false));
        this.addAbility(ability);
    }

    public WeaponSurge(final WeaponSurge 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.