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

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

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

origin: magefree/mage

public ScreechingSkaab(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{U}");
  this.subtype.add(SubType.ZOMBIE);
  this.power = new MageInt(2);
  this.toughness = new MageInt(1);
  // When Screeching Skaab enters the battlefield, put the top two cards of your library into your graveyard.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new PutTopCardOfLibraryIntoGraveControllerEffect(2)));
}
origin: magefree/mage

public CephalidAristocrat(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{U}");
  this.subtype.add(SubType.CEPHALID);
  this.power = new MageInt(3);
  this.toughness = new MageInt(3);
  // Whenever Cephalid Aristocrat becomes the target of a spell or ability, put the top two cards of your library into your graveyard.
  this.addAbility(new BecomesTargetTriggeredAbility(new PutTopCardOfLibraryIntoGraveControllerEffect(2)));
}
origin: magefree/mage

public TolarianSerpent(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{5}{U}{U}");
  this.subtype.add(SubType.SERPENT);
  this.power = new MageInt(7);
  this.toughness = new MageInt(7);
  // At the beginning of your upkeep, put the top seven cards of your library into your graveyard.
  this.addAbility(new OnEventTriggeredAbility(EventType.UPKEEP_STEP_PRE, 
      "beginning of your upkeep", 
      new PutTopCardOfLibraryIntoGraveControllerEffect(7), false));
}
origin: magefree/mage

public StitchersSupplier(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{B}");
  this.subtype.add(SubType.ZOMBIE);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // When Stitcher's Supplier enters the battlefield or dies, put the top three cards of your library into your graveyard.
  this.addAbility(new EntersBattlefieldOrDiesSourceTriggeredAbility(
      new PutTopCardOfLibraryIntoGraveControllerEffect(3), false)
  );
}
origin: magefree/mage

public WailingGhoul(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{B}");
  this.subtype.add(SubType.ZOMBIE);
  this.power = new MageInt(1);
  this.toughness = new MageInt(3);
  // When Wailing Ghoul enters the battlefield, put the top two cards of your library into your graveyard.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new PutTopCardOfLibraryIntoGraveControllerEffect(2)));
}
origin: magefree/mage

public ArmoredSkaab(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{U}");
  this.subtype.add(SubType.ZOMBIE);
  this.subtype.add(SubType.WARRIOR);
  this.power = new MageInt(1);
  this.toughness = new MageInt(4);
  // When Armored Skaab enters the battlefield, put the top four cards of your library into your graveyard.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new PutTopCardOfLibraryIntoGraveControllerEffect(4)));
}
origin: magefree/mage

public DeadbridgeChant(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{4}{B}{G}");
  // When Deadbridge Chant enters the battlefield, put the top ten cards of your library into your graveyard.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new PutTopCardOfLibraryIntoGraveControllerEffect(10)));
  // At the beginning of your upkeep, choose a card at random in your graveyard. If it's a creature card, put it onto the battlefield. Otherwise, put it into your hand.
  this.addAbility(new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new DeadbridgeChantEffect(), TargetController.YOU, false));
}
origin: magefree/mage

public MorgueThrull(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{B}");
  this.subtype.add(SubType.THRULL);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Sacrifice Morgue Thrull: Put the top three cards of your library into your graveyard.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutTopCardOfLibraryIntoGraveControllerEffect(3), new SacrificeSourceCost()));
}
origin: magefree/mage

public CrowOfDarkTidings(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{B}");
  this.subtype.add(SubType.ZOMBIE);
  this.subtype.add(SubType.BIRD);
  this.power = new MageInt(2);
  this.toughness = new MageInt(1);
  // Flying
  this.addAbility(FlyingAbility.getInstance());
  // When Crow of Dark Tidings enters the battlefield or dies, put the top two cards of your library into your graveyard.
  this.addAbility(new EntersBattlefieldOrDiesSourceTriggeredAbility(new PutTopCardOfLibraryIntoGraveControllerEffect(2), false));
}
origin: magefree/mage

public SidisiBroodTyrant(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{B}{G}{U}");
  addSuperType(SuperType.LEGENDARY);
  this.subtype.add(SubType.NAGA);
  this.subtype.add(SubType.SHAMAN);
  this.power = new MageInt(3);
  this.toughness = new MageInt(3);
  // Whenever Sidisi, Brood Tyrant enters the battlefield or attacks, put the top three cards of your library into your graveyard.
  this.addAbility(new EntersBattlefieldOrAttacksSourceTriggeredAbility(new PutTopCardOfLibraryIntoGraveControllerEffect(3)));
  // Whenever one or more creature cards are put into your graveyard from your library, create a 2/2 black Zombie creature token.
  this.addAbility(new SidisiBroodTyrantTriggeredAbility());
}
origin: magefree/mage

public WorldShaper(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{G}");
  this.subtype.add(SubType.MERFOLK);
  this.subtype.add(SubType.SHAMAN);
  this.power = new MageInt(3);
  this.toughness = new MageInt(3);
  // Whenever World Shaper attacks, you may put the top three cards of your library into your graveyard.
  this.addAbility(new AttacksTriggeredAbility(new PutTopCardOfLibraryIntoGraveControllerEffect(3), true));
  // When World Shaper dies, put all land cards from your graveyard onto the battlefield tapped.
  this.addAbility(new DiesTriggeredAbility(new WorldShaperEffect(), false));
}
origin: magefree/mage

public GrappleWithThePast(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{G}");
  // Put the top three cards of your library into your graveyard, then you may return a creature or land card from your graveyard to your hand.
  getSpellAbility().addEffect(new PutTopCardOfLibraryIntoGraveControllerEffect(3));
  getSpellAbility().addEffect(new GrappleWithThePastEffect());
}
origin: magefree/mage

public MentalNote(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{U}");
  // Put the top two cards of your library into your graveyard.
  this.getSpellAbility().addEffect(new PutTopCardOfLibraryIntoGraveControllerEffect(2));
  // Draw a card.
  this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
}
origin: magefree/mage

public AutumnalGloom(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{G}");
  this.transformable = true;
  this.secondSideCardClazz = AncientOfTheEquinox.class;
  // {B}: Put the top card of your library into your graveyard.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutTopCardOfLibraryIntoGraveControllerEffect(1), new ManaCostsImpl("{B}")));
  // <i>Delirium</i> &mdash; At the beginning of your end step, if there are four or more card types among cards in your graveyard, transform Autumnal Gloom.
  this.addAbility(new TransformAbility());
  Ability ability = new BeginningOfEndStepTriggeredAbility(Zone.BATTLEFIELD, new TransformSourceEffect(true), TargetController.YOU, DeliriumCondition.instance, false);
  ability.setAbilityWord(AbilityWord.DELIRIUM);
  this.addAbility(ability);
}
origin: magefree/mage

public ShardOfBrokenGlass(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{1}");
  this.subtype.add(SubType.EQUIPMENT);
  // Equipped creature gets +1/+0.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEquippedEffect(1, 0)));
  // Whenever equipped creature attacks, you may put the top two cards of your library into your graveyard.
  this.addAbility(new AttacksAttachedTriggeredAbility(new PutTopCardOfLibraryIntoGraveControllerEffect(2), true));
  // Equip {1}
  this.addAbility(new EquipAbility(Outcome.AddAbility, new GenericManaCost(1)));
}
origin: magefree/mage

public SequesteredStash(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  // {R}: Add {C}.
  this.addAbility(new ColorlessManaAbility());
  // {4},{T}, Sacrifice Sequestered Stash: Put the top five cards of your library into your graveyard. Then you may put an artifact card from your graveyard on top of your library.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutTopCardOfLibraryIntoGraveControllerEffect(5), new GenericManaCost(4));
  ability.addCost(new TapSourceCost());
  ability.addCost(new SacrificeSourceCost());
  ability.addEffect(new SequesteredStashEffect());
  this.addAbility(ability);
}
origin: magefree/mage

public PerpetualTimepiece(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{2}");
  // {T}: Put the top two cards of your library into your graveyard.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutTopCardOfLibraryIntoGraveControllerEffect(2), new TapSourceCost()));
  // {2}, Exile Perpetual Timepiece: Shuffle any number of target cards from your graveyard into your library.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PerpetualTimepieceShuffleEffect(), new GenericManaCost(2));
  ability.addCost(new ExileSourceCost());
  ability.addTarget(new TargetCardInYourGraveyard(0, Integer.MAX_VALUE, new FilterCard("cards to shuffle into your library")));
  this.addAbility(ability);
}
origin: magefree/mage

public RakshasasSecret(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{2}{B}");
  // Target opponent discards two cards. Put the top two cards of your library into your graveyard.
  this.getSpellAbility().addEffect(new DiscardTargetEffect(2));
  this.getSpellAbility().addTarget(new TargetOpponent());
  Effect effect = new PutTopCardOfLibraryIntoGraveControllerEffect(2);
  effect.setText("Put the top two cards of your library into your graveyard");
  this.getSpellAbility().addEffect(effect);
}
origin: magefree/mage

public FalseMemories(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{U}");
  // Put the top seven cards of your library into your graveyard.
  this.getSpellAbility().addEffect(new PutTopCardOfLibraryIntoGraveControllerEffect(7));
  // At the beginning of the next end step, exile seven cards from your graveyard.
  this.getSpellAbility().addEffect(new CreateDelayedTriggeredAbilityEffect(new AtTheBeginOfNextEndStepDelayedTriggeredAbility(new ExileCardFromOwnGraveyardControllerEffect(7))));
}
origin: magefree/mage

public DrownInFilth(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{B}{G}");
  // Choose target creature. Put the top four cards of your library into your graveyard, then that creature gets -1/-1 until end of turn for each land card in your graveyard.
  this.getSpellAbility().addTarget(new TargetCreaturePermanent());
  Effect effect = new PutTopCardOfLibraryIntoGraveControllerEffect(4);
  effect.setText("Choose target creature. Put the top four cards of your library into your graveyard");
  this.getSpellAbility().addEffect(effect);
  DynamicValue landCards = new SignInversionDynamicValue(new CardsInControllerGraveyardCount(new FilterLandCard()));
  this.getSpellAbility().addEffect(new BoostTargetEffect(landCards, landCards, Duration.EndOfTurn));
}
mage.abilities.effects.commonPutTopCardOfLibraryIntoGraveControllerEffect<init>

Popular methods of PutTopCardOfLibraryIntoGraveControllerEffect

  • apply
  • setText

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JTextField (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • 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