Tabnine Logo
LoseLifeTargetControllerEffect
Code IndexAdd Tabnine to your IDE (free)

How to use
LoseLifeTargetControllerEffect
in
mage.abilities.effects.common

Best Java code snippets using mage.abilities.effects.common.LoseLifeTargetControllerEffect (Showing top 17 results out of 315)

origin: magefree/mage

@Override
public LoseLifeTargetControllerEffect copy() {
  return new LoseLifeTargetControllerEffect(this);
}
origin: magefree/mage

public DeathCharmer(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{B}");
  this.subtype.add(SubType.WORM);
  this.subtype.add(SubType.MERCENARY);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Whenever Death Charmer deals combat damage to a creature, that creature's controller loses 2 life unless he or she pays {2}.
  this.addAbility(new DealsCombatDamageToACreatureTriggeredAbility(new DoUnlessTargetPlayerOrTargetsControllerPaysEffect(new LoseLifeTargetControllerEffect(2), new ManaCostsImpl("{2}")), false, true));
}
origin: magefree/mage

public SpreadingRot(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{4}{B}");
  // Destroy target land.  Its controller loses 2 life.
  this.getSpellAbility().addEffect(new DestroyTargetEffect());
  this.getSpellAbility().addEffect(new LoseLifeTargetControllerEffect(2));
  this.getSpellAbility().addTarget(new TargetLandPermanent());
}
origin: magefree/mage

public GlissasScorn(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{G}");
  // Destroy target artifact. Its controller loses 1 life.
  this.getSpellAbility().addTarget(new TargetArtifactPermanent());
  this.getSpellAbility().addEffect(new DestroyTargetEffect(true));
  this.getSpellAbility().addEffect(new LoseLifeTargetControllerEffect(1));
}
origin: magefree/mage

public Undermine(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{U}{U}{B}");
  // Counter target spell. Its controller loses 3 life.
  this.getSpellAbility().addTarget(new TargetSpell(StaticFilters.FILTER_SPELL));
  this.getSpellAbility().addEffect(new CounterTargetEffect());
  this.getSpellAbility().addEffect(new LoseLifeTargetControllerEffect(3));
}
origin: magefree/mage

public PsychicBarrier(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{U}{U}");
  // Counter target creature spell. Its controller loses 1 life.
  this.getSpellAbility().addTarget(new TargetSpell(StaticFilters.FILTER_SPELL_CREATURE));
  this.getSpellAbility().addEffect(new CounterTargetEffect());
  this.getSpellAbility().addEffect(new LoseLifeTargetControllerEffect(1));
}
origin: magefree/mage

public VictoriousDestruction(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{4}{R}");
  // Destroy target artifact or land. Its controller loses 1 life.
  this.getSpellAbility().addTarget(new TargetPermanent(filter));
  this.getSpellAbility().addEffect(new DestroyTargetEffect());
  this.getSpellAbility().addEffect(new LoseLifeTargetControllerEffect(1));
}
origin: magefree/mage

public Despoil(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{3}{B}");
  // Destroy target land. Its controller loses 2 life.
  this.getSpellAbility().addEffect(new DestroyTargetEffect());
  this.getSpellAbility().addEffect(new LoseLifeTargetControllerEffect(2));
  this.getSpellAbility().addTarget(new TargetLandPermanent());
}
origin: magefree/mage

public HideousEnd(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{B}{B}");
  // Destroy target nonblack creature. Its controller loses 2 life.
  this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter));
  this.getSpellAbility().addEffect(new DestroyTargetEffect());
  this.getSpellAbility().addEffect(new LoseLifeTargetControllerEffect(2));
}
origin: magefree/mage

public VaporSnag(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{U}");
  // Return target creature to its owner's hand. Its controller loses 1 life.
  this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
  this.getSpellAbility().addEffect(new LoseLifeTargetControllerEffect(1));
  this.getSpellAbility().addTarget(new TargetCreaturePermanent());
}
origin: magefree/mage

public Countersquall(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{U}{B}");
  // Counter target noncreature spell. Its controller loses 2 life.
  this.getSpellAbility().addTarget(new TargetSpell(filter));
  this.getSpellAbility().addEffect(new CounterTargetEffect());
  this.getSpellAbility().addEffect(new LoseLifeTargetControllerEffect(2));
}
origin: magefree/mage

public SipOfHemlock(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{4}{B}{B}");
  // Destroy target creature.  Its controller loses 2 life.
  this.getSpellAbility().addEffect(new DestroyTargetEffect());
  this.getSpellAbility().addTarget(new TargetCreaturePermanent());
  this.getSpellAbility().addEffect(new LoseLifeTargetControllerEffect(2));
}
origin: magefree/mage

public ClutchOfTheUndercity(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{U}{U}{B}");
  // Return target permanent to its owner's hand. Its controller loses 3 life.
  this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
  this.getSpellAbility().addEffect(new LoseLifeTargetControllerEffect(3));
  this.getSpellAbility().addTarget(new TargetPermanent());
  // Transmute {1}{U}{B}
  this.addAbility(new TransmuteAbility("{1}{U}{B}"));
}
origin: magefree/mage

public PunishIgnorance(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{W}{U}{U}{B}");
  // Counter target spell. Its controller loses 3 life and you gain 3 life.
  this.getSpellAbility().addTarget(new TargetSpell(StaticFilters.FILTER_SPELL));
  this.getSpellAbility().addEffect(new CounterTargetEffect());
  this.getSpellAbility().addEffect(new LoseLifeTargetControllerEffect(3));
  Effect effect = new GainLifeEffect(3);
  effect.setText("and you gain 3 life");
  this.getSpellAbility().addEffect(effect);
}
origin: magefree/mage

public LaunchParty(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{B}");
  // As an additional cost to cast Launch Party, sacrifice a creature.
  this.getSpellAbility().addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent(FILTER_CONTROLLED_CREATURE_SHORT_TEXT)));
  // Destroy target creature. Its controller loses 2 life.
  this.getSpellAbility().addTarget(new TargetCreaturePermanent());
  this.getSpellAbility().addEffect(new DestroyTargetEffect());
  this.getSpellAbility().addEffect(new LoseLifeTargetControllerEffect(2));
}
origin: magefree/mage

public RakdosIckspitter(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{B}{R}");
  this.subtype.add(SubType.THRULL);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // {tap}: Rakdos Ickspitter deals 1 damage to target creature and that creature's controller loses 1 life.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new TapSourceCost());
  Effect effect = new LoseLifeTargetControllerEffect(1);
  effect.setText("and that creature's controller loses 1 life");
  ability.addEffect(effect);
  ability.addTarget(new TargetCreaturePermanent());
  this.addAbility(ability);
}
origin: magefree/mage

public DeathBomb(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{3}{B}");
  // As an additional cost to cast Death Bomb, sacrifice a creature.
  this.getSpellAbility().addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent(1,1, new FilterControlledCreaturePermanent("a creature"), true)));
  // Destroy target nonblack creature. It can't be regenerated. Its controller loses 2 life.
  this.getSpellAbility().addEffect(new DestroyTargetEffect(true));
  this.getSpellAbility().addEffect(new LoseLifeTargetControllerEffect(2));
  this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter));
}
mage.abilities.effects.commonLoseLifeTargetControllerEffect

Most used methods

  • <init>

Popular in Java

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • putExtra (Intent)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now