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

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

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

origin: magefree/mage

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

public SetPlayerLifeAllEffect(DynamicValue amount, TargetController targetController) {
  super(Outcome.DrawCard);
  this.amount = amount;
  this.targetController = targetController;
  staticText = setText();
}
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

Most used methods

  • <init>
  • setText

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onCreateOptionsMenu (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • getResourceAsStream (ClassLoader)
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • JCheckBox (javax.swing)
  • Best IntelliJ 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