Package mage.abilities.common

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


        Effect effect = new GainAbilityControlledEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn);
        effect.setText("creatures you control gain first strike");
        Ability ability = new AttacksTriggeredAbility(effect, false);
        effect = new GainAbilityControlledEffect(DeathtouchAbility.getInstance(), Duration.EndOfTurn);
        effect.setText("and deathtouch until end of turn");
        ability.addEffect(effect);
        this.addAbility(ability);
    }

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


        this.subtype.add("Warrior");
        this.color.setRed(true);
        this.power = new MageInt(4);
        this.toughness = new MageInt(4);
        Ability ability = new AttacksTriggeredAbility(new OgreGeargrabberEffect1(), false);
        ability.addEffect(new GainControlTargetEffect(Duration.EndOfTurn));
        ability.addTarget(new TargetPermanent(1, 1, filter, false));
        this.addAbility(ability);
    }

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

        this.subtype.add("Angel");
        this.color.setWhite(true);
        this.power = new MageInt(4);
        this.toughness = new MageInt(4);
        Ability ability = new AttacksTriggeredAbility(new GainAbilityControlledEffect(FlyingAbility.getInstance(), Duration.EndOfTurn, new FilterAttackingCreature()), false);
        ability.addEffect(new GainAbilityControlledEffect(LifelinkAbility.getInstance(), Duration.EndOfTurn, new FilterAttackingCreature()));
        this.addAbility(ability);
    }

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