Package mage.abilities.common

Examples of mage.abilities.common.BecomesTappedTriggeredAbility


        this.getSpellAbility().addEffect(new AttachEffect(Outcome.AddAbility));
        Ability ability = new EnchantAbility(auraTarget.getTargetName());
        this.addAbility(ability);

        // Whenever enchanted creature becomes tapped, Lust for War deals 3 damage to that creature's controller.
        Ability attachedAbility = new BecomesTappedTriggeredAbility(new DamageControllerEffect(3));
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(attachedAbility, AttachmentType.AURA)));

        // Enchanted creature attacks each turn if able.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(new AttacksEachTurnStaticAbility(), AttachmentType.AURA)));
    }
View Full Code Here


    public CityOfBrass(UUID ownerId) {
        super(ownerId, 327, "City of Brass", Rarity.RARE, new CardType[]{CardType.LAND}, "");
        this.expansionSetCode = "7ED";

        // Whenever City of Brass becomes tapped, it deals 1 damage to you.
        this.addAbility(new BecomesTappedTriggeredAbility(new DamageControllerEffect(1)));

        // {tap}: Add one mana of any color to your mana pool.
        this.addAbility(new AnyColorManaAbility());
    }
View Full Code Here

        this.color.setBlue(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);

        // Whenever Fallowsage becomes tapped, you may draw a card.
        this.addAbility(new BecomesTappedTriggeredAbility(new DrawCardSourceControllerEffect(1)));
    }
View Full Code Here

        this.color.setRed(true);
        this.power = new MageInt(1);
        this.toughness = new MageInt(1);

        // Whenever Goblin Medics becomes tapped, it deals 1 damage to target creature or player.
        Ability ability = new BecomesTappedTriggeredAbility(new DamageTargetEffect(1));
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
    }
View Full Code Here

        this.color.setBlue(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);

        // Whenever Surgespanner becomes tapped, you may pay {1}{U}. If you do, return target permanent to its owner's hand.
        Ability ability = new BecomesTappedTriggeredAbility(new DoIfCostPaid(new ReturnToHandTargetEffect(), new ManaCostsImpl("{1}{U}")));
        ability.addTarget(new TargetPermanent());
        this.addAbility(ability);
    }
View Full Code Here

TOP

Related Classes of mage.abilities.common.BecomesTappedTriggeredAbility

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.