Package mage.abilities.effects.common

Examples of mage.abilities.effects.common.GainLifeEffect


        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // Whenever a land enters the battlefield under an opponent's control, you may gain 3 life.
        this.addAbility(new EntersBattlefieldAllTriggeredAbility(
                Zone.BATTLEFIELD, new GainLifeEffect(3), filter, true, "Whenever a land enters the battlefield under an opponent's control, you may gain 3 life."));
    }
View Full Code Here


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

        // When Kitchen Finks enters the battlefield, you gain 2 life.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new GainLifeEffect(2)));
        // Persist
        this.addAbility(new PersistAbility());
    }
View Full Code Here

        this.subtype.add("Monk");
        this.subtype.add("Cleric");
        this.color.setWhite(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);
        this.addAbility(new EntersBattlefieldTriggeredAbility(new GainLifeEffect(2)));
    }
View Full Code Here

        this.subtype.add("Cleric");
        this.subtype.add("Mutant");
        this.color.setWhite(true);
        this.power = new MageInt(1);
        this.toughness = new MageInt(3);
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainLifeEffect(5), new ManaCostsImpl("{7}{W}")));
    }
View Full Code Here

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

        // <i>Inspired</i> - Whenever Oreskos Sun Guide becomes untapped, you gain 2 life.
        this.addAbility(new InspiredAbility(new GainLifeEffect(2)));
    }
View Full Code Here

        this.color.setWhite(true);

        // You gain X life if {G} was spent to cast Dawnglow Infusion and X life if {W} was spent to cast it.
        DynamicValue xValue = new ManacostVariableValue();
        this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
                new GainLifeEffect(xValue),
                new ManaWasSpentCondition(ColoredManaSymbol.G), "You gain X life if {G} was spent to cast {this}"));
        this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
                new GainLifeEffect(xValue),
                new ManaWasSpentCondition(ColoredManaSymbol.W), " And X life if {W} was spent to cast it"));
        this.addInfo("Info1", "<i>(Do both if {G}{W} was spent.)</i>");
        this.addWatcher(new ManaSpentToCastWatcher());

View Full Code Here

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

        // {1}, Reveal X white cards from your hand, Sacrifice Martyr of Sands: You gain three times X life.
        Effect effect = new GainLifeEffect(new MultipliedValue(new RevealTargetFromHandCostCount(), 3));
        effect.setText("You gain three times X life.");
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{1}"));
        ability.addCost(new RevealTargetFromHandCost(new TargetCardInHand(0, Integer.MAX_VALUE, filter)));
        ability.addCost(new SacrificeSourceCost());
        this.addAbility(ability);
    }
View Full Code Here

}

class DragonsClawAbility extends TriggeredAbilityImpl {

    public DragonsClawAbility() {
        super(Zone.BATTLEFIELD, new GainLifeEffect(1), true);
    }
View Full Code Here

class SwordOfLightAndShadowAbility extends TriggeredAbilityImpl {

    public SwordOfLightAndShadowAbility() {
        super(Zone.BATTLEFIELD, new SwordOfLightAndShadowReturnToHandTargetEffect(), false);
        this.addEffect(new GainLifeEffect(3));
       
    }
View Full Code Here

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

        // Whenever a player casts a white spell, you may pay {1}. If you do, you gain 1 life.
        this.addAbility(new SpellCastAllTriggeredAbility(new DoIfCostPaid(new GainLifeEffect(1), new ManaCostsImpl("{1}")), filter, true));
       
    }
View Full Code Here

TOP

Related Classes of mage.abilities.effects.common.GainLifeEffect

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.