Tabnine Logo
SetPlayerLifeAllEffect.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
mage.abilities.effects.common.SetPlayerLifeAllEffect
constructor

Best Java code snippets using mage.abilities.effects.common.SetPlayerLifeAllEffect.<init> (Showing top 4 results out of 315)

origin: magefree/mage

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

public SwayOfTheStars(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{8}{U}{U}");
  // Each player shuffles their hand, graveyard, and permanents he or she owns into their library, then draws seven cards. Each player's life total becomes 7.
  this.getSpellAbility().addEffect(new SwayOfTheStarsEffect());
  Effect effect = new DrawCardAllEffect(7);
  effect.setText(", then draws seven cards");
  this.getSpellAbility().addEffect(effect);
  this.getSpellAbility().addEffect(new SetPlayerLifeAllEffect(7));
}
origin: magefree/mage

public OnceMoreWithFeeling(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{W}{W}{W}{W}");
  // Exile all permanents and all cards from all graveyards. Each player shuffles their hand into their library, then draws seven cards. Each player's life total becomes 10. Exile Once More with Feeling.
  this.getSpellAbility().addEffect(new OnceMoreWithFeelingEffect());
  Effect effect = new DrawCardAllEffect(7);
  effect.setText(", then draws seven cards");
  this.getSpellAbility().addEffect(effect);
  this.getSpellAbility().addEffect(new SetPlayerLifeAllEffect(10));
  this.getSpellAbility().addEffect(ExileSpellEffect.getInstance());
  // DCI ruling — A deck can have only one card named Once More with Feeling.
  // (according to rule 112.6m, this shouldn't do anything)
  this.getSpellAbility().addEffect(new InfoEffect("<br>DCI ruling &mdash; A deck can have only one card named {this}"));
}
origin: magefree/mage

public AurraSingBaneOfJedi(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.PLANESWALKER}, "{2}{B}{R}");
  this.subtype.add(SubType.AURRA);
  this.addAbility(new PlaneswalkerEntersWithLoyaltyCountersAbility(3));
  // +1: You may have {this} deal 2 damage to target creature. If you don't, {this} deals 1 damage to you.
  Ability ability = new LoyaltyAbility(new AurraSingBaneOfJediEffect(), +1);
  ability.addTarget(new TargetCreaturePermanent());
  this.addAbility(ability);
  // -4: Target player gets an emblem wiht "Whenever a nontoken creature you control leave the battlefied, discard a card.".
  ability = new LoyaltyAbility(new GetEmblemTargetPlayerEffect(new AurraSingBaneOfJediEmblem()), -4);
  ability.addTarget(new TargetPlayer());
  this.addAbility(ability);
  // -6: Each player discards their hand and sacrificies all creatures he or she controls. Each player's life total becomes 1."
  ability = new LoyaltyAbility(new DiscardHandAllEffect(), -6);
  ability.addEffect(new SacrificeAllEffect());
  Effect effect = new SetPlayerLifeAllEffect(1, TargetController.ANY);
  ability.addEffect(effect);
  this.addAbility(ability);
}
mage.abilities.effects.commonSetPlayerLifeAllEffect<init>

Popular methods of SetPlayerLifeAllEffect

  • setText

Popular in Java

  • Finding current android device location
  • getSharedPreferences (Context)
  • setContentView (Activity)
  • setScale (BigDecimal)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • CodeWhisperer alternatives
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