Package mage.abilities.effects.common

Examples of mage.abilities.effects.common.GainLifeEffect


        super(ownerId, 6, "Riot Control", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{2}{W}");
        this.expansionSetCode = "DGM";
        this.color.setWhite(true);

        // Gain 1 life for each creature your opponents control. Prevent all damage that would be dealt to you this turn.
        this.getSpellAbility().addEffect(new GainLifeEffect(new PermanentsOnBattlefieldCount(filter)));
        this.getSpellAbility().addEffect(new PreventAllDamageToControllerEffect(Duration.EndOfTurn));

    }
View Full Code Here


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

        this.addAbility(TrampleAbility.getInstance());
        this.addAbility(new EntersBattlefieldTriggeredAbility(new GainLifeEffect(7), false));
        this.addAbility(new DiesTriggeredAbility(new DrawCardSourceControllerEffect(1), false));
    }
View Full Code Here

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

        // Whenever another creature dies, you may gain 1 life.
        this.addAbility(new DiesCreatureTriggeredAbility(new GainLifeEffect(1), true, true));
    }
View Full Code Here

        this.expansionSetCode = "9ED";

        this.color.setWhite(true);

        // You gain 4 life.
        this.getSpellAbility().addEffect(new GainLifeEffect(4));
    }
View Full Code Here

        this.subtype.add("Cleric");
        this.color.setWhite(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);

        Ability ability = new EntersBattlefieldTriggeredAbility(new GainLifeEffect(2));
        Mode mode = new Mode();
        mode.getEffects().add(new LoseLifeTargetEffect(2));
        mode.getTargets().add(new TargetPlayer());
        ability.addMode(mode);
        this.addAbility(ability);
View Full Code Here

        this.power = new MageInt(0);
        this.toughness = new MageInt(1);

        // Whenever Blood Artist or another creature dies, target player loses 1 life and you gain 1 life.
        Ability ability = new DiesThisOrAnotherCreatureTriggeredAbility(new LoseLifeTargetEffect(1), false);
        ability.addEffect(new GainLifeEffect(1));
        Target target = new TargetPlayer();
        ability.addTarget(target);
        this.addAbility(ability);
    }
View Full Code Here

        this.expansionSetCode = "9ED";

        this.color.setWhite(true);

        // {W}, Discard a card: You gain 3 life.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainLifeEffect(3), new ManaCostsImpl("{W}"));
        ability.addCost(new DiscardCardCost());
        this.addAbility(ability);
    }
View Full Code Here

        this.expansionSetCode = "ROE";

        this.color.setWhite(true);

        // You gain 2 life. Then if you have more life than an opponent, draw a card.
        this.getSpellAbility().addEffect(new GainLifeEffect(2));
        this.getSpellAbility().addEffect(new SurvivalCacheEffect());
        this.addAbility(new ReboundAbility());
    }
View Full Code Here

        this.color.setWhite(true);

        // Convoke
        this.addAbility(new ConvokeAbility());
        // You gain 8 life.
        this.getSpellAbility().addEffect(new GainLifeEffect(8));
    }
View Full Code Here

        this.expansionSetCode = "KTK";

        // Tranquil Cove enters the battlefield tapped.
        this.addAbility(new EntersBattlefieldTappedAbility());
        // When Tranquil Cove enters the battlefield, you gain 1 life.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new GainLifeEffect(1)));
        // {T}: Add {W} or {U} to your mana pool.
        this.addAbility(new WhiteManaAbility());
        this.addAbility(new BlueManaAbility());               
       
    }
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.