Package mage.abilities.effects.common

Examples of mage.abilities.effects.common.GainLifeEffect


        this.expansionSetCode = "KTK";

        // Swiftwater Cliffs enters the battlefield tapped.
        this.addAbility(new EntersBattlefieldTappedAbility());
        // When Swiftwater Cliffs enters the battlefield, you gain 1 life.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new GainLifeEffect(1)));
        // {T}: Add {U} or {R} to your mana pool.
        this.addAbility(new BlueManaAbility());
        this.addAbility(new RedManaAbility());       
             
    }
View Full Code Here


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

        // Whenever a creature you control with toughness 4 or greater dies, you gain 4 life.
        this.addAbility(new DiesCreatureTriggeredAbility(new GainLifeEffect(4), false, filter));

    }
View Full Code Here

        this.subtype.add("Elemental");
        this.power = new MageInt(4);
        this.toughness = new MageInt(5);

        // Morbid - When Hollowhenge Scavenger enters the battlefield, if a creature died this turn, you gain 5 life.
        TriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new GainLifeEffect(5));
        this.addAbility(new ConditionalTriggeredAbility(ability, MorbidCondition.getInstance(), staticText));
    }
View Full Code Here

        this.color.setBlack(true);

        // Destroy target land. You gain 4 life.
        this.getSpellAbility().addTarget(new TargetLandPermanent());
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
        this.getSpellAbility().addEffect(new GainLifeEffect(4));
    }
View Full Code Here

        // Bloodfell Caves enters the battlefield tapped.
        this.addAbility(new EntersBattlefieldTappedAbility());
       
        // When Bloodfell Caves enters the battlefield, you gain 1 life.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new GainLifeEffect(1)));
       
        // {T}: Add {B} or {R} to your mana pool.
        this.addAbility(new BlackManaAbility());
        this.addAbility(new RedManaAbility());          
    }
View Full Code Here

        this.expansionSetCode = "KTK";

        // Wind-Scarred Crag enters the battlefield tapped.
        this.addAbility(new EntersBattlefieldTappedAbility());
        // When Wind-Scarred Crag enters the battlefield, you gain 1 life.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new GainLifeEffect(1)));
        // {T}: Add {R} or {W} to your mana pool.
        this.addAbility(new RedManaAbility());
        this.addAbility(new WhiteManaAbility());               
       
    }
View Full Code Here

        this.expansionSetCode = "KTK";

        // Rugged Highlands enters the battlefield tapped.
        this.addAbility(new EntersBattlefieldTappedAbility());
        // When Rugged Highlands enters the battlefield, you gain 1 life.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new GainLifeEffect(1)));
        // {T}: Add {R} or {G} to your mana pool.
        this.addAbility(new RedManaAbility());
        this.addAbility(new GreenManaAbility());
               
    }
View Full Code Here

        this.expansionSetCode = "KTK";

        // T: Add 1 to your mana pool
        this.addAbility(new ColorlessManaAbility());
        // 2, T: You gain 1 life for each colorless creature you control
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainLifeEffect(new PermanentsOnBattlefieldCount(filter)), new GenericManaCost(2));
        ability.addCost(new TapSourceCost());
        this.addAbility(ability);
    }
View Full Code Here

        this.power = new MageInt(2);
        this.toughness = new MageInt(2);

        // Whenever a creature you control with toughness 4 or greater dies, each opponent loses 2 life and you gain 2 life.
        Ability ability = new DiesCreatureTriggeredAbility(new LoseLifeOpponentsEffect(2), false, toughnessFilter);
        Effect effect = new GainLifeEffect(2);
        effect.setText("and you gain 2 life");
        ability.addEffect(effect);
        this.addAbility(ability);
       
        // {2}{B}, Sacrifice another creature: Put a +1/+1 counter on Kheru Bloodsucker.
        ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance()), new ManaCostsImpl<>("{2}{B}"));
View Full Code Here

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

        // {T}: You gain 1 life.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainLifeEffect(1), new TapSourceCost()));
       
    }
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.