Examples of GainLifeTargetEffect


Examples of mage.abilities.effects.common.GainLifeTargetEffect

        this.expansionSetCode = "APC";
        this.subtype.add("Zombie");
        this.color.setBlack(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(1);
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainLifeTargetEffect(1), new ColoredManaCost(ColoredManaSymbol.W));
        ability.addCost(new TapSourceCost());
        ability.addTarget(new TargetPlayer(1));
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.effects.common.GainLifeTargetEffect

}

class CurseOfTheForsakenTriggeredAbility extends TriggeredAbilityImpl {

    public CurseOfTheForsakenTriggeredAbility() {
        super(Zone.BATTLEFIELD, new GainLifeTargetEffect(1), false);
    }
View Full Code Here

Examples of mage.abilities.effects.common.GainLifeTargetEffect

        this.color.setWhite(true);
        this.power = new MageInt(3);
        this.toughness = new MageInt(3);

        // Whenever a Sliver deals damage, its controller gains that much life.
        this.addAbility(new DealsDamageTriggeredAbility(new GainLifeTargetEffect(0), false, true));

    }
View Full Code Here

Examples of mage.abilities.effects.common.GainLifeTargetEffect

        this.color.setWhite(true);

        // Fiery Justice deals 5 damage divided as you choose among any number of target creatures and/or players. Target opponent gains 5 life.
        this.getSpellAbility().addEffect(new DamageMultiEffect(5));
        this.getSpellAbility().addTarget(new TargetCreatureOrPlayerAmount(5));
        Effect effect = new GainLifeTargetEffect(5);
        effect.setTargetPointer(new SecondTargetPointer());
        effect.setText("Target opponent gains 5 life");
        this.getSpellAbility().addEffect(effect);
        this.getSpellAbility().addTarget(new TargetOpponent());
    }
View Full Code Here

Examples of mage.abilities.effects.common.GainLifeTargetEffect

        ability.addEffect(new CreateTokenTargetEffect(new HippoToken()));
        ability.addTarget(new TargetOpponent());
        this.addAbility(ability);
        // {W}: Phelddagrif gains flying until end of turn. Target opponent gains 2 life.
        ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn),new ManaCostsImpl("{W}"));
        ability.addEffect(new GainLifeTargetEffect(2));
        ability.addTarget(new TargetOpponent());
        this.addAbility(ability);
        // {U}: Return Phelddagrif to its owner's hand. Target opponent may draw a card.
        ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true),new ManaCostsImpl("{U}"));
        ability.addEffect(new DrawCardTargetEffect(1, true));
View Full Code Here

Examples of mage.abilities.effects.common.GainLifeTargetEffect

        this.color.setBlue(true);
        this.color.setWhite(true);

        // Target player gains 7 life and draws two cards.
        this.getSpellAbility().addTarget(new TargetPlayer());
        this.getSpellAbility().addEffect(new GainLifeTargetEffect(7));
        this.getSpellAbility().addEffect(new DrawCardTargetEffect(2));
    }
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.