Package mage.abilities.effects.common

Examples of mage.abilities.effects.common.LoseLifeTargetEffect


    public OnyxGoblet (UUID ownerId) {
        super(ownerId, 81, "Onyx Goblet", Rarity.COMMON, new CardType[]{CardType.ARTIFACT}, "{2}{B}");
        this.expansionSetCode = "ALA";
        this.color.setBlack(true);

        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LoseLifeTargetEffect(1), new TapSourceCost());
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }
View Full Code Here


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

        // {tap}: Target player loses 1 life.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LoseLifeTargetEffect(1), new TapSourceCost());
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
       
        // {4}, {tap}: Search your library for a Rebel permanent card with converted mana cost 3 or less and put it onto the battlefield. Then shuffle your library.
        SimpleActivatedAbility ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD,
View Full Code Here

        this.expansionSetCode = "FUT";

        this.color.setBlack(true);

        // At the beginning of each player's upkeep, that player loses 1 life and discards a card.
        Effect effect = new LoseLifeTargetEffect(1);
        effect.setText("that player loses 1 life");
        Ability ability = new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, effect, TargetController.ANY, false, true);
        effect = new DiscardTargetEffect(1);
        effect.setText("and discards a card");
        ability.addEffect(effect);
        this.addAbility(ability);
       
        // Hellbent - Skip your upkeep step if you have no cards in hand.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ConditionalContinuousRuleModifyingEffect(
View Full Code Here

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

        // {B}, Sacrifice a creature: Target player loses 1 life.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LoseLifeTargetEffect(1), new ColoredManaCost(ColoredManaSymbol.B));
        ability.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent()));
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }
View Full Code Here

    public AbsorbVis (UUID ownerId) {
        super(ownerId, 40, "Absorb Vis", Rarity.COMMON, new CardType[]{CardType.SORCERY}, "{6}{B}");
        this.expansionSetCode = "CON";
        this.color.setBlack(true);
        this.getSpellAbility().addEffect(new LoseLifeTargetEffect(4));
        this.getSpellAbility().addEffect(new GainLifeEffect(4));
        this.getSpellAbility().addTarget(new TargetPlayer());
        this.addAbility(new BasicLandcyclingAbility(new ManaCostsImpl("{1}{B}")));
    }
View Full Code Here

}

class ParasiticStrixTriggeredAbility extends TriggeredAbilityImpl {

    public ParasiticStrixTriggeredAbility() {
        super(Zone.BATTLEFIELD, new LoseLifeTargetEffect(2));
        this.addEffect(new GainLifeEffect(2));
        this.addTarget(new TargetPlayer());
    }
View Full Code Here

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

        TriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new LoseLifeTargetEffect(4), false);
        ability.addEffect(new GainLifeEffect(4));
        Target target = new TargetPlayer();
        ability.addTarget(target);

        this.addAbility(new ConditionalTriggeredAbility(ability, MetalcraftCondition.getInstance(), effectText));
View Full Code Here

}

class CorruptedRootsTriggeredAbility extends TriggeredAbilityImpl {

    CorruptedRootsTriggeredAbility() {
        super(Zone.BATTLEFIELD, new LoseLifeTargetEffect(2));
    }
View Full Code Here

        // Enchanted creature can't attack or block, and its activated abilities can't be activated.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBlockAttackActivateAttachedEffect()));
      
        // At the beginning of the upkeep of enchanted creature's controller, that player loses 1 life.
        this.addAbility(new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new LoseLifeTargetEffect(1), TargetController.CONTROLLER_ATTACHED_TO, false, true));
    }
View Full Code Here

        // Target opponent sacrifices a creature, discards three cards, then loses 5 life.
        // You return a creature card from your graveyard to your hand, draw three cards, then gain 5 life.
        this.getSpellAbility().addTarget(new TargetOpponent());
        this.getSpellAbility().addEffect(new SacrificeEffect(new FilterCreaturePermanent(), 1, "Target opponent"));
        this.getSpellAbility().addEffect(new DiscardTargetEffect(3));
        this.getSpellAbility().addEffect(new LoseLifeTargetEffect(5));

        this.getSpellAbility().addEffect(new CruelUltimatumEffect());
        this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(3));
        this.getSpellAbility().addEffect(new GainLifeEffect(5));
    }
View Full Code Here

TOP

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

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.