Package mage.abilities

Examples of mage.abilities.Ability.addEffect()


        // Deathtouch
        this.addAbility(DeathtouchAbility.getInstance());
        // Whenever Liliana's Reaver deals combat damage to a player, that player discards a card and you put a 2/2 black Zombie creature token onto the battlefield tapped.

        Ability ability = new DealsCombatDamageToAPlayerTriggeredAbility(new DiscardTargetEffect(1),false, true);
        ability.addEffect(new CreateTokenEffect(new ZombieToken("M14"), 1, true, false));
        this.addAbility(ability);
    }

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


        // {tap}: Add {1} to your mana pool.
        this.addAbility(new ColorlessManaAbility());
        // {tap}: Add {G} or {W} to your mana pool. Talisman of Unity deals 1 damage to you.
        Ability greenManaAbility = new GreenManaAbility();
        greenManaAbility.addEffect(new DamageControllerEffect(1));
        this.addAbility(greenManaAbility);
        Ability whiteManaAbility = new WhiteManaAbility();
        whiteManaAbility.addEffect(new DamageControllerEffect(1));
        this.addAbility(whiteManaAbility);
    }
View Full Code Here

        // {tap}: Add {G} or {W} to your mana pool. Talisman of Unity deals 1 damage to you.
        Ability greenManaAbility = new GreenManaAbility();
        greenManaAbility.addEffect(new DamageControllerEffect(1));
        this.addAbility(greenManaAbility);
        Ability whiteManaAbility = new WhiteManaAbility();
        whiteManaAbility.addEffect(new DamageControllerEffect(1));
        this.addAbility(whiteManaAbility);
    }

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

        this.subtype.add("Warrior");
        this.color.setRed(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2, 0, Duration.EndOfTurn), new SacrificeTargetCost(new TargetControlledCreaturePermanent(1, 1, filter, false)));
        ability.addEffect(new GainAbilitySourceEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn));
        this.addAbility(ability);
    }

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

        this.subtype.add("Faerie");
        this.color.setBlack(true);

        // At the beginning of your upkeep, you lose 1 life and put a 1/1 black Faerie Rogue creature token with flying onto the battlefield.
        Ability ability = new BeginningOfUpkeepTriggeredAbility(new LoseLifeSourceControllerEffect(1), TargetController.YOU, false);
        ability.addEffect(new CreateTokenEffect(new FaerieToken(), 1));
        this.addAbility(ability);
    }

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

        // Equipped creature has haste and shroud.
        Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(HasteAbility.getInstance(), AttachmentType.EQUIPMENT));
        Effect effect = new GainAbilityAttachedEffect(ShroudAbility.getInstance(), AttachmentType.EQUIPMENT);
        effect.setText("and shroud");
        ability.addEffect(effect);
        this.addAbility(ability);
        // Equip {0}
        this.addAbility(new EquipAbility(Outcome.AddAbility, new GenericManaCost(0)));
    }
View Full Code Here

        // {tap}: Add {1} to your mana pool.
        this.addAbility(new ColorlessManaAbility());
        // {tap}: Add {U} or {B} to your mana pool. Rootwater Depths doesn't untap during your next untap step.
        Ability ability = new BlueManaAbility();
        ability.addEffect(new SkipNextUntapSourceEffect());
        this.addAbility(ability);
        ability = new BlackManaAbility();
        ability.addEffect(new SkipNextUntapSourceEffect());
        this.addAbility(ability);
    }
View Full Code Here

        // {tap}: Add {U} or {B} to your mana pool. Rootwater Depths doesn't untap during your next untap step.
        Ability ability = new BlueManaAbility();
        ability.addEffect(new SkipNextUntapSourceEffect());
        this.addAbility(ability);
        ability = new BlackManaAbility();
        ability.addEffect(new SkipNextUntapSourceEffect());
        this.addAbility(ability);
    }

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

        this.subtype.add("Rogue");
        this.subtype.add("Equipment");

        // Equipped creature gets +2/+0 and has shroud.
        Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEquippedEffect(2, 0));
        ability.addEffect(new GainAbilityAttachedEffect(ShroudAbility.getInstance(), AttachmentType.EQUIPMENT));
        this.addAbility(ability);
        // Whenever a Rogue creature enters the battlefield, you may attach Cloak and Dagger to it.
        this.addAbility(new EntersBattlefieldAllTriggeredAbility(
                Zone.BATTLEFIELD, new AttachEffect(Outcome.Detriment, "attach {source} to it"),
                filter, true, true, null));
View Full Code Here

        this.subtype.add("Warrior");
        this.subtype.add("Equipment");

        // Equipped creature gets +2/+1 and has haste.
        Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEquippedEffect(2, 1));
        ability.addEffect(new GainAbilityAttachedEffect(HasteAbility.getInstance(), AttachmentType.EQUIPMENT));
        this.addAbility(ability);
        // Whenever a Warrior creature enters the battlefield, you may attach Obsidian Battle-Axe to it.
        this.addAbility(new EntersBattlefieldAllTriggeredAbility(
                Zone.BATTLEFIELD, new AttachEffect(Outcome.Detriment, "attach {source} to it"),
                filter, true, true, null));
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.