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

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

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

origin: magefree/mage

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

public SwordsToPlowshares(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{W}");
  // Exile target creature. Its controller gains life equal to its power.
  this.getSpellAbility().addTarget(new TargetCreaturePermanent());
  this.getSpellAbility().addEffect(new ExileAndGainLifeEqualPowerTargetEffect());
}
origin: magefree/mage

public AjaniUnyielding(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.PLANESWALKER}, "{4}{G}{W}");
  this.addSuperType(SuperType.LEGENDARY);
  this.subtype.add(SubType.AJANI);
  this.addAbility(new PlaneswalkerEntersWithLoyaltyCountersAbility(4));
  // +2: Reveal the top three cards of your library. Put all nonland permanent cards revealed this way into your hand and the rest on the bottom of your library in any order.
  this.addAbility(new LoyaltyAbility(new RevealLibraryPutIntoHandEffect(3, nonlandPermanentFilter, Zone.LIBRARY), 2));
  // -2: Exile target creature. Its controller gains life equal to its power.
  LoyaltyAbility ajaniAbility2 = new LoyaltyAbility(new ExileAndGainLifeEqualPowerTargetEffect(), -2);
  ajaniAbility2.addTarget(new TargetCreaturePermanent());
  this.addAbility(ajaniAbility2);
  // -9: Put five +1/+1 counters on each creature you control and five loyalty counters on each other planeswalker you control.
  LoyaltyAbility ajaniAbility3 = new LoyaltyAbility(new AddCountersAllEffect(CounterType.P1P1.createInstance(5), new FilterControlledCreaturePermanent()), -9);
  ajaniAbility3.addEffect(new AddCountersAllEffect(CounterType.LOYALTY.createInstance(5), planeswalkerFilter));
  this.addAbility(ajaniAbility3);
}
mage.abilities.effects.commonExileAndGainLifeEqualPowerTargetEffect<init>

Popular methods of ExileAndGainLifeEqualPowerTargetEffect

  • getTargetPointer

Popular in Java

  • Running tasks concurrently on multiple threads
  • onCreateOptionsMenu (Activity)
  • requestLocationUpdates (LocationManager)
  • getContentResolver (Context)
  • Menu (java.awt)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • 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